cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Invalid proxy settings

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 5 Feb 2012 11:49:03 +0100 (CET)

On Wed, 1 Feb 2012, Chandrakant Bagul -ERS, HCL Tech wrote:

> 3. Invalid proxy server address
> If I provide proxy server address as "/192.168.1.45" or "/./././", then
> Response code is 200, means internet connection is available. But
> here proxy is invalid, but still respCode return as 200.
> This is buggy situation.

I believe this is because if libcurl fails to parse/accept the proxy string it
won't get set and then it runs without proxy. I think that is the correct
behavior, but you should of course get an error code back when you used
setopt() to set that proxy. Did you?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-05