PX : code

/*! This function performs a http POST query (i.e. form submission) and
* returns the received response.
\return FALSE Something went wrong, possibly the server refused your query or
the connection to the server failed.
\return The response string.
*/
function http_post($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 */
)
{
$user_agent = "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)";