cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1338648 ] --max-redirs 0 is ignored

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 23 Mar 2006 08:40:10 -0800

Bugs item #1338648, was opened at 2005-10-26 10:05
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1338648&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: wrong behaviour
Status: Closed
Resolution: Fixed
Priority: 3
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: --max-redirs 0 is ignored

Initial Comment:
I would expect

curl --location --max-redirs 0 http://$url_that_redirects

to make curl return an error (47) if the url is redirected.
Instead it follows the redirect (even multiple ones).

I have attached a patch which fixes this. I am not certain
if this is the right way - but it seems to work for my
simple testcases.

Hmmm - sourceforge tells me to fill in my name and
email, but there are no fields for it. Guess here will do:

Nis Jorgensen
nis.jorgensen_at_int.greenpeace.org

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2006-03-23 08:40

Message:
Logged In: NO

<a href="http://www.loan-universe.info/problem.html">problem credit debt consolidation loan</a>, <a href="http://www.loan-universe.info/loanmortgnew.html">loan mortgage new refinance york</a>, <a href="http://www.loan-universe.info/collegeloanonline.html">college loan online</a>, <a href="http://www.loan-universe.info/bankfirst.html">bank first home loan tennessee</a>, <a href="http://www.loan-universe.info/badcarcreditinstant.html">bad car credit instant loan need</a>, <a href="http://www.loan-universe.info/badcancar.html">bad canada car credit in loan ontario</a>, <a href="http://www.loan-universe.info/calcfinanc.html">calculator financial hughes mortgage</a>,

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2006-03-19 19:08

Message:
Logged In: NO

<a href="http://www.car-hire-universe.info/sydnairport.html">sydney airport car hire</a>, <a href="http://www.car-hire-universe.info/alexcar.html">alexandria car cheapest in rental</a>, <a href="http://www.car-hire-universe.info/carenterprfl.html">car enterprise fl orlando rental</a>, <a href="http://www.car-hire-universe.info/alamocarrentcoupon.html">alamo car rental coupon code</a>, <a href="http://www.car-hire-universe.info/carhiredublin.html">car hire dublin airport ireland</a>, <a href="http://www.car-hire-universe.info/alamocarrentrev.html">alamo car rental review</a>, <a href="http://www.car-hire-universe.info/australcarhiresydn.html">australia car hire sydney</a>,

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2006-03-15 11:18

Message:
Logged In: NO

I used to play a lot of games using play money at <a href=&#039;http://www.golden-casino.spb.ru&#039;>Golden Casino</a>. But I don&#039;t learn a lot from playing because maniacs will call all in on every hand. I don&#039;t get to improve my games that much when I play with pratise money in games. As a matter of fact, I&#039;m not even enjoying myself when I play games with manics using practise money.

When I actually move to a real money game, I found the games to be more enjoyable, as I am playing against much more better players and I am slowly improving on my game.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2005-10-27 15:06

Message:
Logged In: YES
user_id=1110

Thanks, I did the fix slightly different and have committed
it to CVS just now!

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2005-10-27 07:45

Message:
Logged In: NO

I want curl to return an error if the url is redirected, rather than
output the response. This is for use as part of a larger script.

BTW: I have a suspicion that my patch will change standard
libcurl behavior (when no options are set), but do not have an
easy way to test it.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2005-10-26 13:56

Message:
Logged In: YES
user_id=1110

Out of curiosity, why are you using --location if you don't
want it to follow _any_ Location:?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1338648&group_id=976
Received on 2006-03-23

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET