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: Mon, 20 Feb 2012 12:03:58 +0530

Hi Daniel,

Thanks for your information.

Can you tell me BugID for this issue, as I would like to
integrate this fix.

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: 13 February 2012 17:57
>To: libcurl development
>Subject: RE: Invalid proxy settings
>
>On Mon, 13 Feb 2012, Chandrakant Bagul -ERS, HCL Tech wrote:
>
>>> Yes, right. I was being stupid - setopt() basically only copies the string
>>> and does no parsing whatsoever. I could repeat your problem and I've now
>>> pushed a fix for this with an associated test case (1329). Thanks for
>>> reporting!
>>
>> Could you please explain the provided fix & which different invalid proxy
>> settings are covered/considered in the LibCurl.
>
>The primary flaw I fixed:
>
>libcurl could end up stripping off the left part of a proxy name (like
>everything up to a slash) and only consider the remainder (the right part) as
>the actual name. If the remainder happened to be zero bytes long it would then
>be treated as no proxy at all.
>
>In your case, it turned out libcurl could connect to something (else?) without
>a proxy and that is what happened.
>
>Now with my fix applied, libcurl will not allow a zero length proxy name to go
>through but will return error instead. If the proxy name is longer than zero
>bytes, then it is a host name that will be resolved or used "like normal" and
>if that is bad then the resolving of it should fail just like before.
>
>--
>
> / 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-20