Creation/Dev/GScript/Requesthttp: Difference between revisions

From Graal Bible
No edit summary
m (Typo fix)
Line 20: Line 20:
}}
}}


{{doctitle|Decription}}
{{doctitle|Description}}


Function; sends an HTTP request to a server and returns information about the file that was requested. It is identical to calling requesturl("http://" @ {{graycourier|host}} @ ":" @ {{graycourier|port}} @ {{graycourier|file}}).
Function; sends an HTTP request to a server and returns information about the file that was requested. It is identical to calling requesturl("http://" @ {{graycourier|host}} @ ":" @ {{graycourier|port}} @ {{graycourier|file}}).

Revision as of 20:01, 29 August 2006

Usage

requesthttp(host, port, file)


Parameters

host The name of the host server from which to make the HTTP request.
port The port in which to issue the request.
file The path and filename of the file being requested.


Returns

A THTTPRequest object.


Example


temp.req = requesthttp("graal.net" , 80 , "myfile.txt");

this.catchevent(temp.req,"onReceiveData","onData");


Description

Function; sends an HTTP request to a server and returns information about the file that was requested. It is identical to calling requesturl("http://" @ host @ ":" @ port @ file).