Loading docs/libcurl/opts/CURLOPT_CONNECT_TO.3 +3 −2 Original line number Original line Diff line number Diff line Loading @@ -83,13 +83,14 @@ All .nf .nf CURL *curl; CURL *curl; struct curl_slist *connect_to = NULL; struct curl_slist *connect_to = NULL; host = curl_slist_append(NULL, "example.com::server1.example.com:"); connect_to = curl_slist_append(NULL, "example.com::server1.example.com:"); curl = curl_easy_init(); curl = curl_easy_init(); if(curl) { if(curl) { curl_easy_setopt(curl, CURLOPT_CONNECT_TO, connect_to); curl_easy_setopt(curl, CURLOPT_CONNECT_TO, connect_to); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); res = curl_easy_perform(curl); curl_easy_perform(curl); /* always cleanup */ /* always cleanup */ curl_easy_cleanup(curl); curl_easy_cleanup(curl); Loading docs/libcurl/opts/CURLOPT_COOKIELIST.3 +1 −1 Original line number Original line Diff line number Diff line Loading @@ -100,7 +100,7 @@ were skipped on import are not exported. */ */ curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "cookies.txt"); /* export */ curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "cookies.txt"); /* export */ res = curl_easy_perform(curl); /* cookies imported from cookies.txt */ curl_easy_perform(curl); /* cookies imported from cookies.txt */ curl_easy_cleanup(curl); /* cookies exported to cookies.txt */ curl_easy_cleanup(curl); /* cookies exported to cookies.txt */ .fi .fi Loading docs/libcurl/opts/CURLOPT_RESOLVE.3 +2 −1 Original line number Original line Diff line number Diff line Loading @@ -67,7 +67,8 @@ curl = curl_easy_init(); if(curl) { if(curl) { curl_easy_setopt(curl, CURLOPT_RESOLVE, host); curl_easy_setopt(curl, CURLOPT_RESOLVE, host); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); res = curl_easy_perform(curl); curl_easy_perform(curl); /* always cleanup */ /* always cleanup */ curl_easy_cleanup(curl); curl_easy_cleanup(curl); Loading Loading
docs/libcurl/opts/CURLOPT_CONNECT_TO.3 +3 −2 Original line number Original line Diff line number Diff line Loading @@ -83,13 +83,14 @@ All .nf .nf CURL *curl; CURL *curl; struct curl_slist *connect_to = NULL; struct curl_slist *connect_to = NULL; host = curl_slist_append(NULL, "example.com::server1.example.com:"); connect_to = curl_slist_append(NULL, "example.com::server1.example.com:"); curl = curl_easy_init(); curl = curl_easy_init(); if(curl) { if(curl) { curl_easy_setopt(curl, CURLOPT_CONNECT_TO, connect_to); curl_easy_setopt(curl, CURLOPT_CONNECT_TO, connect_to); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); res = curl_easy_perform(curl); curl_easy_perform(curl); /* always cleanup */ /* always cleanup */ curl_easy_cleanup(curl); curl_easy_cleanup(curl); Loading
docs/libcurl/opts/CURLOPT_COOKIELIST.3 +1 −1 Original line number Original line Diff line number Diff line Loading @@ -100,7 +100,7 @@ were skipped on import are not exported. */ */ curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "cookies.txt"); /* export */ curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "cookies.txt"); /* export */ res = curl_easy_perform(curl); /* cookies imported from cookies.txt */ curl_easy_perform(curl); /* cookies imported from cookies.txt */ curl_easy_cleanup(curl); /* cookies exported to cookies.txt */ curl_easy_cleanup(curl); /* cookies exported to cookies.txt */ .fi .fi Loading
docs/libcurl/opts/CURLOPT_RESOLVE.3 +2 −1 Original line number Original line Diff line number Diff line Loading @@ -67,7 +67,8 @@ curl = curl_easy_init(); if(curl) { if(curl) { curl_easy_setopt(curl, CURLOPT_RESOLVE, host); curl_easy_setopt(curl, CURLOPT_RESOLVE, host); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); res = curl_easy_perform(curl); curl_easy_perform(curl); /* always cleanup */ /* always cleanup */ curl_easy_cleanup(curl); curl_easy_cleanup(curl); Loading