cURL / Mailing Lists / curl-library / Single Mail


Re: Curl reports: "Maximum (50) redirects followed"

From: Alex Vinnik <>
Date: Tue, 26 Feb 2013 15:29:54 -0600

>Lots of cookies in that browser trace. What about enabling cookies in your >curl
command? Also, sites are very frequently acting differently depending on >the
headers used.

same result

~$ ~/bin/curl --cookie-jar mycookie.jar -L "
curl: (47) Maximum (50) redirects followed


Just want to reiterate that in my original email I mentioned strange URL

1. Server responds with this path to both curl and chrome
2. Chrome transforms it to
2. Curl doesn't change it and gets into infinite redirect loop

When you try "modified" URL in curl then it works
$ curl -o output -L "
  % Total % Received % Xferd Average Speed Time Time Time
                                 Dload Upload Total Spent Left
100 88664 0 88664 0 0 45914 0 --:--:-- 0:00:01 --:--:--

Somehow chrome is aware about this malformed server response and takes
care of it. Do you know why chrome messes around with location url? Thanks.

List admin:
Received on 2013-02-26