curl-library
Newbie, can't connect to any website
Date: Wed, 17 Feb 2010 09:25:26 -0500
I'm trying to get Curl up and running, but every site I try to use fails to connect. I've tried google.com, curl.haxx.se, http://finder.geocommons.com/. I'm running Curl 7.18.0 on a Win32 machine. What am I doing wrong?
Here's the code I'm running (simple.c example):
#include <stdio.h>
#include <curl/curl.h>
int main(void)
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl)
{
curl_easy_setopt(curl, CURLOPT_URL, "http://www.google.com/");
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}
And here's my program output:
* About to connect() to www.google.com port 80 (#0)
* Trying 64.233.169.105... * Timeout
* Trying 64.233.169.106... * Timeout
* Trying 64.233.169.147... * Timeout
* Trying 64.233.169.99... * Timeout
* Trying 64.233.169.103... * Timeout
* Trying 64.233.169.104... * Timeout
* connect() timed out!
* Closing connection #0
* Timeout was reached
Press any key to continue . . .
Thank you for any help you can provide!
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-17