ID: 41892 Updated by: [EMAIL PROTECTED] Reported By: a dot fokin at new-vision dot com -Status: Open +Status: Bogus Bug Type: cURL related Operating System: windows PHP Version: 5.2.3 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php 1. You have to encode the @ using urlencoding 2. PHP just passes the string to curl so if there'S something wrong it's curl not PHP. Previous Comments: ------------------------------------------------------------------------ [2007-07-07 19:34:56] a dot fokin at new-vision dot com since i got no reaction to the last comment, i'm opening this thing again. Any kind of reaction would be nice... even 'stop spamming, it is really not a bug' will perfectly satisfy me ;) ------------------------------------------------------------------------ [2007-07-05 06:09:49] a dot fokin at new-vision dot com I am 99,5% sure, that this is not a support or development question. When i use http://111:[EMAIL PROTECTED] - everything is fine, but when i use http://[EMAIL PROTECTED]:[EMAIL PROTECTED] - curl reads it as if username is `111`, no password given and actual url (host) is `111.111:[EMAIL PROTECTED], which is wrong url parsing. I'm not asking here for help or feedback (in some case ;)). Just want to make sure, that you actually read current "bogus" description and understand what is the problem. And sorry for spam if i am wrong ;). ------------------------------------------------------------------------ [2007-07-04 11:53:28] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2007-07-04 09:04:21] a dot fokin at new-vision dot com Description: ------------ when i try to http authenticate by url with user name, containing '@', i got '6' returned. Reproduce code: --------------- <?php $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, "http://[EMAIL PROTECTED]:[EMAIL PROTECTED]" ); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); $errno = curl_errno($ch); echo $errno; ?> Expected result: ---------------- You have reached this web page by typing "example.com", "example.net", or "example.org" into your web browser. These domain names are reserved for use in documentation and are not available for registration. See RFC 2606, Section 3. /0/ Actual result: -------------- /6/ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41892&edit=1