cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: following redirects in libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 18 Jun 2016 13:14:36 +0200 (CEST)

On Fri, 17 Jun 2016, Richard Gray wrote:

> if a broken server sent 3xx and no location header would that be some sort
> of error condition?

Yes, I would say so. At least for the (5?) specific 3xx codes that mean
redirect.

> So in general, is it correct to say that if a curl_easy_getinfo call returns
> CURLE_OK but the requested info is not available because of options or
> conditions during the transfer, the pointer gets set to NULL?

Yeps!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-06-18