HTTPX_AddPostVar

HTTPX_AddPostVar(const variable[], const value[]) Adds a POST variable to the request. This function is used before HTTPX_Download() or HTTP_AddToQue(), similar to set/show hudmessage. It can be used multiple times before each download.

Syntax

native HTTPX_AddPostVar(const variable[], const value[]) /** * HTTPX_AddPostRaw(const data[]) * * Adds raw POST data to the request. * This function is used before HTTPX_Download() or HTTP_AddToQue(), similar to set/show hudmessage. * It can be used multiple times before each download. **/ native HTTPX_AddPostRaw(const data[]) /** * Number of parameters for the callbacks are 1 (DownloadID) for the progress event and 2 (DownloadID, Error) for the complete event. * Error codes: * 0 Download done. No problems encountered. * Positive returns is unhandled HTTP return codes. For example 404. * Negative is internal errors. * -1 No response code was found in the HTTP response header or it was outside the accepted range (200-307). * -2 Server is sending bad data or sizes for a chunked transfer or HTTPX has problems reading them. * -3 Nothing received in last packet. Most likely due to an error. * -4 HTTPX was redirected but could not follow due to a socket error. * -5 HTTPX was redirected too many times. Usually happens when server is insisting on a SSL/TLS connection which HTTPX does not support. **/ /** * HTTPX_Download(const URL[], const Filename[] = "", const CompleteHandler[] = "", const ProgressHandler[] = "", Port = (80<<443), RequestType = REQUEST_GET, const Username[] = "", const Password[] = "", ...) * * Begins download of a URL. Read parameters for information. * *

Usage

variable
value
Defined in httpx.inc at line 156 . This documentation was automatically generated from source.