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: Sat, 13 Jan 2007 09:46:22 -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
Private: No
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: 2007-01-13 09:46

Message:
Logged In: NO

Enjoy wines from top-rated wine producers around the world from Australia
to Germany to South Africa. A great way to sample a variety of wines from
major wine regions. A GREAT GIFT for wine lovers.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2007-01-12 23:46

Message:
Logged In: NO

History Happens is a collection of music videos about characters from
American history. Our goal is to inform and inspire young people that an
individual can make a difference-as evidenced by the many acts of courage,
endurance and passion that make up the American story.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2007-01-12 16:25

Message:
Logged In: NO

Bestrecipesforyou.com just got a new and improved look and we hope that
you will like what we’ve done. Our web site was first launched almost ten
years ago....

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

Comment By: Nobody/Anonymous (nobody)
Date: 2007-01-06 12:10

Message:
Logged In: NO

Hi, people!! Visit new site about anal sex.
<a href="http://www.asshot.info/slickman.html">slick man ass</a>
The youngest, freshest and hardest porn for FREE! Updates Everyday!
<a href="http://www.asshot.info/tinyassfist.html">tiny ass fisting</a>
Best porno pics and video !!! Tons movies and photos !!!
<a href="http://www.asshot.info/teenageblack.html">teenage black girls
ass</a>

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

Comment By: Nobody/Anonymous (nobody)
Date: 2006-11-03 02:20

Message:
Logged In: NO

<a href="http://www.anal-sex-lessons.info/">splosh food sex</a>These sluts
are getting used really harsh and in the end their anal passages look like
a train passed through.

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

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 2007-01-13

These mail archives are generated by hypermail.

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

File upload with ASP.NET