#32695 [Opn]: CURLPROXY_SOCKS5 Notices
| From: | just-anonimus-no-spam at no-such-host dot com | Date: | Wed, 13 Apr 2005 14:10:53 +0000 |
| Subject: | #32695 [Opn]: CURLPROXY_SOCKS5 Notices | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77465@lists.php.net to get a copy of this message | ||
ID: 32695
User updated by: just-anonimus-no-spam at no-such-host dot com
Reported By: just-anonimus-no-spam at no-such-host dot com
Status: Open
Bug Type: cURL related
Operating System: Linux fc3 2.6.11.6 #1 Tue Apr
-PHP Version: 5.0.4
+PHP Version: 4.3.11
New Comment:
PHP v: 4.3.11
Previous Comments:
------------------------------------------------------------------------
[2005-04-13 16:00:41] just-anonimus-no-spam at no-such-host dot com
Description:
------------
I can't solve some problem while trying to get a site content via
socks5 proxy (CURL Information: libcurl/7.13.1 OpenSSL/0.9.7d
zlib/1.1.4)
While trying to do like this:
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL, "http://www.yahoo.com");
curl_setopt ($ch, CURLOPT_TIMEOUT, 30);
curl_setopt ($ch, CURLOPT_PROXY, "192.168.1.12:1080");
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt ($ch, CURLOPT_FAILONERROR, true);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec($ch);
print curl_errno ($ch);
print $result;
curl_close ($ch);
?>
Expected result:
----------------
I get: print $result is Ok;
Notice: Use of undefined constant CURLOPT_PROXYTYPE - assumed
'CURLOPT_PROXYTYPE' in /home/jim/php/curl_socks.php on line 7
Notice: Use of undefined constant CURLPROXY_SOCKS5 - assumed
'CURLPROXY_SOCKS5' in /home/jim/php/curl_socks.php on line 7
Actual result:
--------------
But: The socks proxy is ok => $result also Ok!
PS: PLEASE CHECK ERROR (Near Notices)
THANKS::FOR_YOUR_WORK
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32695&edit=1