cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Invalid proxy settings

From: Chandrakant Bagul -ERS, HCL Tech <Chandrakant.Bagul_at_hcl.com>
Date: Tue, 7 Feb 2012 10:44:27 +0530

Hi Daniel,

>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?

We didn't get any error when setopt() is used to set the invalid proxy,
it always returns CURLE_OK.

Thanks & regards,
Chandrakant

>-----Original Message-----
>From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-
>bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
>Sent: 05 February 2012 16:19
>To: libcurl development
>Subject: Re: Invalid proxy settings
>
>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

::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

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

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