Skip to content

cf_https_get

Category: web
GitHub: cute_https.h


Creates an HTTPS GET request.

CF_HttpsRequest cf_https_get(const char* host, int port, const char* uri, 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".
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.

CF_HttpsRequest
cf_https_response
cf_https_post
cf_https_destroy
cf_https_process