cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL does not redirect properly

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 28 Jun 2005 10:58:56 -0700

On Tue, Jun 28, 2005 at 07:13:46PM +0800, ykhuang wrote:
> But I think that user agent and referer field might not be the major issue.
> I used wget on the same URL without addtional arguments like user agent
> or referer url, it could get correct
> response from server and redirect to the desired URL. Here's the log:

There are other fields that are different. The Accept: line could certainly
cause a different behaviour. The line you show in your logs implies that
you're using an old version of curl; the default Accept: was changed to
a wild card in more recent versions and that itself might be enough. It
could still be the user agent. Keep adding Mozilla or wget-like headers
until it starts working.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2005-06-28