diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-10-05 15:00:19 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-10-05 15:00:19 +0200 |
commit | 18e7b52e8e95f7204d8ef7ff0f0ff0043afe45a9 (patch) | |
tree | 16916d3680982a91be43e16cad44df14d3dd6d7b /docs/examples/sendrecv.c | |
parent | 6d272e53a2b109400c1ee9a31ffa40f288459b41 (diff) | |
download | curl-18e7b52e8e95f7204d8ef7ff0f0ff0043afe45a9.tar.gz |
examples: use example.com in example URLs
Diffstat (limited to 'docs/examples/sendrecv.c')
-rw-r--r-- | docs/examples/sendrecv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/sendrecv.c b/docs/examples/sendrecv.c index 6cba1dbcf..ad5ddd115 100644 --- a/docs/examples/sendrecv.c +++ b/docs/examples/sendrecv.c @@ -48,13 +48,13 @@ int main(void) CURL *curl; CURLcode res; /* Minimalistic http request */ - const char *request = "GET / HTTP/1.0\r\nHost: curl.haxx.se\r\n\r\n"; + const char *request = "GET / HTTP/1.0\r\nHost: example.com\r\n\r\n"; int sockfd; /* socket */ size_t iolen; curl = curl_easy_init(); if(curl) { - curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se"); + curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); /* Do not do the transfer - only connect to host */ curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 1L); res = curl_easy_perform(curl); |