mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
add support for socks5, socks4, and http proxies
This commit is contained in:
parent
9f033fc848
commit
4d64b27a82
9 changed files with 58 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue