fsNetworkHttpRequestPOST
The fsNetworkHttpRequestPOST function creates an http POST request.
Syntax
FsNetworkRequestId fsNetworkHttpRequestPOST(
const char* url,
FsNetworkHttpRequestParam* param,
HttpRequestCallback callback,
void* userData
);
Members
Parameters | Description |
---|---|
url |
The URL for the POST request to be sent to. |
param |
This is the FsNetworkHttpRequestParam struct that is used to customise the request. Note that for the POST request, the postField must be filled. |
callback |
This is where you can provide a callback function for when the request has been completed. You may use a nullptr here instead. |
userData |
A user defined pointer for data that is to be returned as part the callback (or nullptr if not required). |
Return Values
This function returns a valid request ID - which can be used in further function calls, like fsNetworkHttpRequestGetData
or fsNetworkHttpRequestGetErrorCode
- otherwise it will return 0 if the call fails.
Remarks
N/A
See Also
- Network API
- FsNetworkRequestId
- HttpRequestCallback
- fsNetworkHttpRequestGetData
- fsNetworkHttpRequestGetDataSize
- fsNetworkHttpRequestGetHeaderSection
- fsNetworkHttpRequestGetState