curl-library
Re: libcurl produces 0byte files for some refered links
From: Jan <haihappn_at_gmail.com>
Date: Wed, 8 Oct 2008 09:01:46 +0200
Date: Wed, 8 Oct 2008 09:01:46 +0200
Wei,
like i wrote in the beginning of my post:
http://mail.google.com/mail/?hl=nl&tab=nm <?hl=nl&tab=nm>
http://www.google.com/calendar/render?hl=nl&tab=nc
-- Jan 2008/10/7 Wei Weng <wweng_at_acedsl.com> > mr orgi wrote: > > Hello, > > > > i have some problems using libcurl in my program. > > > > if i run it for example for all sublinks of news.google.com > > <http://news.google.com> some links are stored as 0byte files. > > > > some examples of these links: > > http://mail.google.com/mail/?hl=nl&tab=nm > > <http://mail.google.com/mail/?hl=nl&tab=nm> > > http://www.google.com/calendar/render?hl=nl&tab=nc > > <http://www.google.com/calendar/render?hl=nl&tab=nc> > > > > these are all links which are refered to another link.. i have read the > > manpages and FOLLOWLOCATION should be the solution for this problem. but > > for some links it still not works. > > > > my curl options are the following: > > > > CURL *curl; > > curl = curl_easy_init(); > > curl_easy_setopt(curl, CURLOPT_URL, link); > > curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); > > curl_easy_setopt(curl, CURLOPT_MAXREDIRS, -1); > > curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data); > > curl_easy_setopt(curl, CURLOPT_WRITEDATA, file); > > curl_easy_perform(curl); > > curl_easy_cleanup(curl); > > > > libcurl version: 7.16.4 > > Visual Studio 2008 > > libcurl compiled as static Multi Threaded > > > > any suggestions? > > > > thanks in advance, > > Jan > > What are the links that it doesn't work for? > > Thanks > Wei >Received on 2008-10-08