Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
how http_get works?
how http_get works?
i try to use, but i dont understand, hehe =]
Re: how http_get works?
http_get ==> filled "HTTP_Header" + "HTTP_Body"
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: how http_get works?
i try this:
but nothing return, i scripting correct?
Code: Select all
Program http;
var
header,body:string;
Begin
HTTP_Get('www.google.com');
header:=HTTP_Header;
body:=HTTP_Body;
addtosystemjournal(header);
addtosystemjournal(body);
end.
Re: how http_get works?
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: how http_get works?
thanks, now i understand hehe =]]]]]]
Re: how http_get works?
How dou you make it work?
I tried to make a post, and receive a response from the server but the HTTP_BODY was empty...
same thing with http_get....
in the server, i created a simple php page with echo "something"
and in pascal, i used like -k- described but changed to http://myurl/file.php
I tried to make a post, and receive a response from the server but the HTTP_BODY was empty...
same thing with http_get....
in the server, i created a simple php page with echo "something"
and in pascal, i used like -k- described but changed to http://myurl/file.php
Re: how http_get works?
I did make it work with get, but sometimes the HTTP_Body receives the header value...
i did something wrong?
Code: Select all
HTTP_Get(post);
header:=HTTP_Header;
body:=HTTP_Body;
addtosystemjournal('Body: ' + body + ' - Header: ' + header);
Code: Select all
Body: HTTP/1.0 200 OK - Header: <htm><head></head><body>OK</body></html>
Re: how http_get works?
OK and OK, whats wrong?
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: how http_get works?
I thought it was the opposite...
anyway, works fine for me...
thanks...
anyway, works fine for me...
thanks...