cf_https_post¶
Category: web
GitHub: cute_https.h
Creates an HTTPS POST request.
CF_HttpsRequest cf_https_post(const char* host, int port, const char* uri, const void* content, int content_length, bool verify_cert);
Parameters | Description |
---|---|
host | The address of the host, e.g. "www.google.com". |
port | The port number to connect over, typically 443 for common web traffic. |
uri | The address of the resource the request references, e.g. "/index.html". |
content | The content to send along with the POST request. |
content_length | Length in bytes of the content string. |
verify_cert | Recommended as true. Set to true to verify the server certificate (you want this on). |
Return Value¶
Returns a CF_HttpsRequest for processing the get request and receiving a response.
Remarks¶
You should continually call cf_https_process on the CF_HttpsRequest. See CF_HttpsRequest for details.
Related Pages¶
CF_HttpsRequest
cf_https_get
cf_https_response
cf_https_destroy
cf_https_process