Bug #71831 [Opn->Ver]: CURLOPT_NOPROXY applied as long instead of string
| From: | requinix@php.net | Date: | Tue, 15 Mar 2016 20:15:03 +0000 |
| Subject: | Bug #71831 [Opn->Ver]: CURLOPT_NOPROXY applied as long instead of string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199849@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: requinix@php.net
Reported by: michael dot sierks at priceline dot com
Summary: CURLOPT_NOPROXY applied as long instead of string
-Status: Open
+Status: Verified
Type: Bug
Package: cURL related
Operating System: Linux
-PHP Version: 5.5.33
+PHP Version: master
Block user comment: N
Private report: N
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