curl-library
Re: error fetching page on redirect to relative url
Date: Fri, 13 Jul 2007 13:50:44 -0400
Hi,
It looks like it is getting stuck going along the following code path:
curl_easy_perform
Curl_Transfer
Transfer
gets stuck in the while loop surrounding the select call
Unfortunately I did not write the original code so I can't answer all
of your questions. There is no proxy server. I tried forcing a HTTP1.0
connection but that didn't fix it. Not sure about the
pipelining/multi-interface.
Thanks,
Wing
On 7/12/07, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Thu, Jul 12, 2007 at 08:47:16PM -0400, Wing Yung wrote:
> > I have run into trouble getting libcurl to follow a redirect. When the
> > page is reached and the 301 is received, libcurl hangs. The page in
> > question is:
> >
> > http://www.etoys.com/HelpSectionTitlesAndUrls.html
> >
> > This is the location that is returned:
> >
> > Location:
> > /HelpSectionTitlesAndUrls.html?_e=4696c&_v=4696C98B0HgKa85CF6D20202
>
> This works fine for me in 7.16.2. It's unlikely due to the illegal Location:
> being returned. It may be related to persistent connections. Are you
> using a proxy server? What happens if you force a HTTP/1.0 request? Is
> libcurl hanging on that new URL or is it looping? Are you using pipelining
> or the multi interface? Posting your source code would help diagnose
> the problem.
>
> >>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address service
> Let webmasters know that your web site has moved
>
Received on 2007-07-13