HTTPX_AddPostRaw

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.

Syntax

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. * * * Parameters: * * const URL[] * URL that you want to download. * * (Optional) const Filename[] * Where should the information be stored? If no filename is entered it will download as a "stream". * This means the data will be thrown away after it passes the buffer. * You can read the data on progress forward and make use of it there.

Usage

data
Defined in httpx.inc at line 165 . This documentation was automatically generated from source.