Gamestudio Links
Zorro Links
Newest Posts
Delete a Directory?
by Emre
Yesterday at 23:57
http_post undeclared identifier
by NnamueN
Yesterday at 23:30
Joystick programing
by LaserJock2000
Yesterday at 20:06
Financial Hacker - Algorithmic Options Trading 1
by AndrewAMD
Yesterday at 16:42
confused with bits
by txesmi
Yesterday at 11:41
Different result price distribution chart
by KadigunFx
Yesterday at 09:48
What are you working on?
by rayp
Yesterday at 05:29
AUM Magazine
Latest Screens
Lake scene
Forgotten Tales - Demo version
RPG PARTY
Triton Wing now available on Steam
Who's Online
4 registered (AndrewAMD, 3run, vince, Cheulmen), 464 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
KadigunFx, fsx, SBGuy, Rajiv, Rayharry
17964 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: 340
hello,

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

Code:
#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("http://underhut.de/postEchtzeit/index.php",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
     printf(_chr(ip_str));
  } else
     error("Error during transfer!");
  http_free(id); //always cleanup the httpid!
  sys_exit(NULL);
}


the index.php is:
Php Code:

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



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

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

Registered: 06/13/07
Posts: 1121
Loc: Hiporope and its pain
Hi,
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.

Salud!

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

Registered: 03/04/14
Posts: 340
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
Version:
P LC

how to read then?

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

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...

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

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

Top
#472787 - 05/23/18 15:26 Re: http_post undeclared identifier [Re: Uhrwerk]
NnamueN Offline
Guest

Registered: 02/23/10
Posts: 3
Hi,

I also get the error even though I have the Pro version
does anyone have an idea why that is?

cu Roman
_________________________
So Long, and Thanks For All the Fish.
Es geht nicht darum im höchsten Level zu sein, sondern alle die vorherigen erlebt und verstanden zu haben !

Top
#472797 - 05/23/18 22:10 Re: http_post undeclared identifier [Re: NnamueN]
Superku Offline
Senior Expert

Registered: 09/13/03
Posts: 6692
Loc: Kiel (Germany)
That command got renamed to http_sendpost(), for whatever reason.
_________________________
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Superku The Game

Severely outdated footage: http://store.steampowered.com/app/407570

Top
#472879 - Yesterday at 23:20 Re: http_post undeclared identifier [Re: Superku]
NnamueN Offline
Guest

Registered: 02/23/10
Posts: 3
Danke für die Info :-) http_sendpost, wo hast du die infos hier ?

cu Roman
_________________________
So Long, and Thanks For All the Fish.
Es geht nicht darum im höchsten Level zu sein, sondern alle die vorherigen erlebt und verstanden zu haben !

Top
#472880 - Yesterday at 23:30 Re: http_post undeclared identifier [Re: NnamueN]
NnamueN Offline
Guest

Registered: 02/23/10
Posts: 3
Originally Posted By: NnamueN
Danke für die Info :-) http_sendpost, wo hast du die infos hier ?

cu Roman

Vergiss wider meine Frage ich hätte auch alleine draufkommen sollen und einfach in Acknet.h Nachschauen, manchmal ist man blind wen die Lösung einem vor der nasse liegt, ich depp :-)

cu Roman


Edited by NnamueN (Yesterday at 23:34)
_________________________
So Long, and Thanks For All the Fish.
Es geht nicht darum im höchsten Level zu sein, sondern alle die vorherigen erlebt und verstanden zu haben !

Top


Moderator:  old_bill 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

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