add support for socks5, socks4, and http proxies

This commit is contained in:
ading2210 2024-07-19 00:47:14 -04:00
parent 9f033fc848
commit 4d64b27a82
9 changed files with 58 additions and 5 deletions

View file

@ -75,6 +75,10 @@ void finish_request(CURLMsg *curl_msg) {
(*request_info->end_callback)(request_info->request_id, error);
}
void request_set_proxy(CURL* http_handle, const char* proxy_url) {
curl_easy_setopt(http_handle, CURLOPT_PROXY, proxy_url);
}
unsigned char* get_cacert() {
return _cacert_pem;
}