Main Page | File List | File Members

httplib.php File Reference

Go to the source code of this file.

Functions

 http_get ($server, $port, $url, $cookie, $additional_fields="")
 http_post ($server, $port, $url, $cookie, $vars)


Function Documentation

http_get (  $  server,
$  port,
$  url,
$  cookie,
$  additional_fields = ""
) 
 

This function performs a http GET query (i.e. download a web page or file) and returns the received response.

Returns:
FALSE Something went wrong, possibly the server refused your query or the connection to the server failed.

The response string.

Parameters:
server  Server's or proxie's host name or IP.
port  Server's or proxie's port
url  Should point to the URL on the server or full address if a proxy is used.
cookie  The optional cookie string.
additional_fields  Optional string containing additional HTTP request fields, each terminated by "\r\n".

Definition at line 67 of file httplib.php.

http_post (  $  server,
$  port,
$  url,
$  cookie,
$  vars
) 
 

This function performs a http POST query (i.e. form submission) and returns the received response.

Returns:
FALSE Something went wrong, possibly the server refused your query or the connection to the server failed.

The response string.

Parameters:
server  Server's or proxie's host name or IP.
port  Server's or proxie's port
url  Should point to the URL on the server or full address if a proxy is used.
cookie  The optional cookie string.
vars  Associative array of POST variables. Each key is the name of the variable and the value is the variable's content

Definition at line 10 of file httplib.php.


Generated on Wed May 25 11:41:54 2005 for getpostlib by  doxygen 1.4.3