aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/opts/CURLOPT_CONNECT_TO.3
diff options
context:
space:
mode:
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_CONNECT_TO.3')
-rw-r--r--docs/libcurl/opts/CURLOPT_CONNECT_TO.35
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/libcurl/opts/CURLOPT_CONNECT_TO.3 b/docs/libcurl/opts/CURLOPT_CONNECT_TO.3
index d80336e24..8c59cfbd4 100644
--- a/docs/libcurl/opts/CURLOPT_CONNECT_TO.3
+++ b/docs/libcurl/opts/CURLOPT_CONNECT_TO.3
@@ -83,13 +83,14 @@ All
.nf
CURL *curl;
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();
if(curl) {
curl_easy_setopt(curl, CURLOPT_CONNECT_TO, connect_to);
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
- res = curl_easy_perform(curl);
+
+ curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);