Gamestudio Links
Zorro Links
Newest Posts
Log file - overwrite and/or append
by DdlV
11 minutes 52 seconds ago
by MatPed
12 minutes 38 seconds ago
save you.x in *.txt with ent_next doesen't work :(
by CocaCola
Today at 14:33
historical data from alphavantage
Today at 14:10
Multible Windows / Screens
by Superku
Today at 10:41
Connors RSI implementation
by Materz
Yesterday at 19:51
Weird sscanf() errors
by Zheka
Yesterday at 16:23
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
19 registered (MatPed, easyX, mig, jfrusty, Kartoffel, Iglarion, mk_1, Hredot, kujo, 3 invisible), 444 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
NicolaB, eiking777, maurice1973, IMMO_VIE, Enric
17918 Registered Users
Topic Options
Rate This Topic
#467542 - 08/11/17 00:51 http_post undeclared identifier
CocaCola Offline
Senior Member

Registered: 03/04/14
Posts: 316

I'm trying the code from the manual, but I get the error
:http_post undeclared identifier ... E355

#include <acknex.h>
#include <default.c>
#include <acknet.h>
STRING* ip_str = "";

// start the script "ip.php" on a remote server, and return the caller's IP address
function main()
   var id = http_post("",NULL);
   while (!http_status(id)) 
     wait(1);//wait for the server to reply
   if (http_status(id) == 1) { //transfer successful?
     http_result(id,ip_str);   //get the replied IP
  } else
     error("Error during transfer!");
  http_free(id); //always cleanup the httpid!

the index.php is:
Php Code:

<?php $ip ="$REMOTE_ADDR";echo "Your IP: $ip";?>

Edited by CocaCola (08/11/17 00:53)

#467543 - 08/11/17 08:59 Re: http_post undeclared identifier [Re: CocaCola]
txesmi Offline
Serious User

Registered: 06/13/07
Posts: 1073
Loc: Hiporope and its pain
the http call is made by 'http_sendpost' instead of 'http_post'. It was wrong in previous manual versions but it is already corrected in the last version.


#467544 - 08/11/17 11:25 Re: http_post undeclared identifier [Re: txesmi]
CocaCola Offline
Senior Member

Registered: 03/04/14
Posts: 316
thnk you! where can I download the new version as help file, and can i update sed for infos?

I tryed 'http_sendpost' and get error http is only for pro version, but in the manual are the blue square icons for

how to read then?

#467553 - 08/11/17 23:00 Re: http_post undeclared identifier [Re: CocaCola]
Uhrwerk Offline

Registered: 01/08/02
Posts: 4218
Loc: Germany / Essen
P LC means that the feature is Pro Version exclusive and only supported in Lite-C, not in C-Script.
Always learn from history, to be sure you make the same mistakes again...

#467554 - 08/11/17 23:47 Re: http_post undeclared identifier [Re: Uhrwerk]
CocaCola Offline
Senior Member

Registered: 03/04/14
Posts: 316
Thank You Uhrwerk


Moderator:  old_bill 

Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at)