curl add support for configured port
This commit is contained in:
parent
ec681bd9d2
commit
7b0682ad18
1
page.c
1
page.c
|
@ -43,6 +43,7 @@ void getPage(void){
|
||||||
}
|
}
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, config.addr);
|
curl_easy_setopt(curl, CURLOPT_URL, config.addr);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_PORT, config.port);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, save_chunk);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, save_chunk);
|
||||||
|
|
||||||
CURLcode result = curl_easy_perform(curl);
|
CURLcode result = curl_easy_perform(curl);
|
||||||
|
|
Loading…
Reference in New Issue