cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: cURL on Windows in MSVC

From: weasel707 asdf <weasel707_at_hotmail.com>
Date: Sat, 22 Aug 2009 20:02:33 -0400

The issue has been resolved. The crash wasn't happening because of libcurl, but because of other code that relied on the data downloaded. The reason why downloads from certain sites didn't work was that I did not set up curl to follow redirects (CURLOPT_FOLLOWLOCATION).

From: weasel707_at_hotmail.com
To: curl-library_at_cool.haxx.se
Subject: cURL on Windows in MSVC
Date: Sat, 22 Aug 2009 17:39:23 -0400

I have downloaded the lib and DLLs from http://curl.haxx.se/download.html under the "Win32 - MSVC" section (no-SSL version). I link to libcurl.lib and have libcurl.dll and zlib1.dll in the same directory. I also copied one of the examples from the docs/examples folder -- simple.c.

The code compiles, links, and runs fine as it is in the example file. However, if I change the URL to something other than "curl.haxx.se", for example "google.com", it no longer works. It compiles and links as before, but crashes during runtime on curl_easy_perform. It appears to work for certain URLs, but not for others.

I have tried other versions under the Win32 heading on the Downloads page, but the same thing happens. Am I doing something wrong? (i.e. do I need to specify additional compiler/linker options?)

Stay on top of things, check email from other accounts! Check it out.
_________________________________________________________________
Attention all humans. We are your photos. Free us.
http://go.microsoft.com/?linkid=9666047
Received on 2009-08-23