cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl produces 0byte files for some refered links

From: Mohun Biswas <m_biswas_at_mailinator.com>
Date: Tue, 14 Oct 2008 18:51:32 -0400

Wei Weng wrote:
> Jan wrote:
>> Wei,
>> sorry for the late response.
>>
>> i checked my 0byte files carefully and i found out that most of them are
>> redirects to https. my current libcurl build (windows) has no ssl
>> support, so thats the problem.
>> one url keeps me wondering:
>> http://www.youtube.com/?hl=en&tab=n1 <http://www.youtube.com/?hl=en&tab=n1>
>> when i use this one with your function i get a:
>> HTTP/1.1 400 Bad Request
>> but why? in firefox the redirect is working fine...
>>
>> --
>> Jan
>>
>
> Jan, you should probably try to get this thing work with curl (executable)
> first then wrap it with libcurl calls.

And if you do, don't forget the very cool --libcurl flag which will
cause the curl executable to dump out a template for a libcurl-using
program which does the same thing.

MB
Received on 2008-10-15