summaryrefslogtreecommitdiff
path: root/docs/examples/sendrecv.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-10-05 15:00:19 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-10-05 15:00:19 +0200
commit18e7b52e8e95f7204d8ef7ff0f0ff0043afe45a9 (patch)
tree16916d3680982a91be43e16cad44df14d3dd6d7b /docs/examples/sendrecv.c
parent6d272e53a2b109400c1ee9a31ffa40f288459b41 (diff)
downloadcurl-18e7b52e8e95f7204d8ef7ff0f0ff0043afe45a9.tar.gz
examples: use example.com in example URLs
Diffstat (limited to 'docs/examples/sendrecv.c')
-rw-r--r--docs/examples/sendrecv.c4
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);