HTTPX_Abort
HTTPX_Abort(DownloadID, bool:DeleteFile = true) Aborts the transfer of selected download DownloadID. If DeleteFile is set to true the partially downloaded file will be deleted.
Syntax
native HTTPX_Abort(DownloadID, bool:DeleteFile = true) /** * 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. **/ 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.
Usage
| DownloadID | — |
| DeleteFile | — |
Defined in
httpx.inc
at line 147
.
This documentation was automatically generated from source.