cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_FAILONERROR

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 19 Oct 2001 09:50:35 +0200 (MET DST)

On Fri, 19 Oct 2001, T. Bharath wrote:

> I just have a doubt with CURLOPT_FAILONERROR
> The doc says that the lib would fail if the http code is greater than or
> equal to 300 if this option is set
> Now does this overide the CURLOPT_FOLLOWLOCATION .
> Basically on redirection the server outputs 302 redirect code so will
> the lib fail without redirecting

It does take into account whether CURLOPT_FOLLOWLOCATION is set or not. The
check is for >=400 if you follow locations, and >=300 if you don't. It is
just the documentation that leaves out some important details! ;-/

The new code (as discussed previously on the list) will always just check for
>=400 no matter what. This version is currently in CVS and will be in the
next pre-release that I'll hopefully package and make available later today.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-10-19