The fsNetworkHttpRequestPut function creates an http PUT request.

 

Syntax
FsNetworkRequestId fsNetworkHttpRequestPut(
    const char* url,
    FsNetworkHttpRequestParam* param,
    HttpRequestCallback callback,
    void* userData
);

 

Members
ParametersDescription
urlThe URL for the PUT request to be sent to.
paramThis is the FsNetworkHttpRequestParam struct that is used to customise the request. Note that the postField must be a nullptr for a PUT request.
callbackThis is where you can provide a callback function for when the request has been completed. You may use a nullptr here instead.
userDataA 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