Well this seems to work. Although i'm not sure if it's the correct way?

Quote:

HTTPGet:CallbackGET /index.php HTTP/1.0
Host: www.gstools.de
Connection: close

HTTPRequest:Received 256 bytes
HTTPRequest:Received 512 bytes
HTTPRequest:Received 768 bytes...
Normal exit




Code:
#include <acknex.h>

STRING* sHostname;
STRING* sPath;
STRING* sResult;
STRING* sTempHost = "Waiting.. Press 'H' key!";

//------------------------------------------------------------------
// helper functions
//------------------------------------------------------------------
function GSTNet_HTTPGet(STRING* sHostname, STRING* sPath, STRING* sResult); // returns a requested page
function GSTNet_HTTPBusy(); // returns != 0 if a http request is busy

function http()
{
sHostname = str_create("www.gstools.de");
sPath = str_create("/index.php");
sResult = str_create("#100000");

GSTNet_HTTPGet(sHostname,sPath,sResult);
while(GSTNet_HTTPBusy()){wait(1);}

str_cpy(sTempHost," ");
str_cpy(sTempHost,sHostname);

diag(sResult);
str_remove(sResult);

}

TEXT* GSTNet_debugtxt =
{
layer=1;
pos_x = 10;
pos_y = 10;
string = ("Hostname:", sTempHost);
flags=VISIBLE;
}

function main()
{
level_load("");
wait(1);
on_h=http;
}




smile