Bug #71831 [Ver->Csd]: CURLOPT_NOPROXY applied as long instead of string
| From: | laruence@php.net | Date: | Mon, 21 Mar 2016 08:44:54 +0000 |
| Subject: | Bug #71831 [Ver->Csd]: CURLOPT_NOPROXY applied as long instead of string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199990@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71831&edit=1
ID: 71831
Updated by: laruence@php.net
Reported by: michael dot sierks at priceline dot com
Summary: CURLOPT_NOPROXY applied as long instead of string
-Status: Verified
+Status: Closed
Type: Bug
Package: cURL related
Operating System: Linux
PHP Version: master
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of michael.sierks@priceline.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=efacdc3511c14f3200b31765bd0113da443e66ad
Log: FIX #71831: CURLOPT_NOPROXY applied as long instead of string
Previous Comments:
------------------------------------------------------------------------
[2016-03-15 19:15:48] michael dot sierks at priceline dot com
Description:
------------
The CURLOPT_NOPROXY option is applied as a long instead of a string. This causes the option to have
no effect.
https://curl.haxx.se/libcurl/c/CURLOPT_NOPROXY.html
Test script:
---------------
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://google.com");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_VERBOSE, true);
// proxy settings
curl_setopt($ch, CURLOPT_PROXY, "my.local.proxy:8080");
curl_setopt($ch, CURLOPT_NOPROXY, "*");
curl_exec($ch);
Expected result:
----------------
You should see in the output the proxy is not used.
Actual result:
--------------
The proxy is used in all cases, even though a wildcard no-proxy option has been set for all urls.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71831&edit=1