Gamestudio Links
Zorro Links
Newest Posts
Performance reporting showing Annual and monthly % returns
by OptimusPrime
Today at 01:19
Issue with inconsistent test results
by kvm
Yesterday at 17:24
Access string content through another string
by ChrstphFr
Yesterday at 11:30
How to return a vector from a function
by Superku
Yesterday at 05:39
Vector Displacement, realtime Blendshapes
by jumpman
08/14/18 23:46
Code Repository
by OptimusPrime
08/14/18 13:25
Votes for future features
by OptimusPrime
08/14/18 07:18
AUM Magazine
Latest Screens
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
Who's Online
6 registered (Dalla, kvm, jenGs, firecrest, alibaba, bailemad), 452 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Ulenspegel, toto, FloMi, behr065, OptimusPrime
18027 Registered Users
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#467542 - 08/11/17 00:51 http_post undeclared identifier
CocaCola Offline
Senior Member

Registered: 03/04/14
Posts: 342
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: 1159
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: 342
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: 342
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: 4
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: 6746
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 - 05/27/18 23:20 Re: http_post undeclared identifier [Re: Superku]
NnamueN Offline
Guest

Registered: 02/23/10
Posts: 4
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 - 05/27/18 23:30 Re: http_post undeclared identifier [Re: NnamueN]
NnamueN Offline
Guest

Registered: 02/23/10
Posts: 4
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 (05/27/18 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
#472884 - 05/28/18 11:02 Re: http_post undeclared identifier [Re: NnamueN]
NnamueN Offline
Guest

Registered: 02/23/10
Posts: 4
Hi
I have problems with https (SSL / TLS) Transport Protocol

it is working
Code:
var id = http_sendpost("http://www.ng-arena.de/ip.php",NULL);



But here I do not get any connection (http_result/http_status)
Code:
var id = http_sendpost("https://www.ng-arena.de/ip.php",NULL);



how can I call an "https" page with http_sendpost ?

Is it possible "Hypertext Transfer Protocol Secure" to use with http_sendpost ?
If not, is there a different solution?

cu Roman
youtube.com/vufDummies - ng-arena.de

p.s.: @Superku, freue mich schon auf dein Spiel, verfolge das schon seit Jahren, hoffe es bald in steam kaufen zu können :-)
_________________________
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
Page 1 of 2 1 2 >


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