-fixes
authorChristian Grothoff <christian@grothoff.org>
Tue, 24 Jan 2012 10:43:30 +0000 (10:43 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 24 Jan 2012 10:43:30 +0000 (10:43 +0000)
src/vpn/test_gnunet_vpn.c

index b7582dd576f401daa907e6e402e762717a8c663a..f75abac990161579c4c30595044d4e409d18b6c0 100644 (file)
@@ -260,7 +260,7 @@ allocation_cb (void *cls,
                   inet_ntop (af, address, ips, sizeof (ips)),
                   (unsigned int) PORT);
   curl = curl_easy_init ();
-  curl_easy_setopt (curl, CURLOPT_URL, "http://127.0.0.1:1082/hello_world");
+  curl_easy_setopt (curl, CURLOPT_URL, url);
   curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, &copyBuffer);
   curl_easy_setopt (curl, CURLOPT_WRITEDATA, &cbc);
   curl_easy_setopt (curl, CURLOPT_FAILONERROR, 1);
@@ -271,6 +271,8 @@ allocation_cb (void *cls,
   multi = curl_multi_init ();
   GNUNET_assert (multi != NULL);
   GNUNET_assert (CURLM_OK == curl_multi_add_handle (multi, curl));
+
+  fprintf (stderr, "Beginning HTTP download from `%s'\n", url);
   curl_main ();
 }