From:             thundix at web dot de
Operating system: Windows
PHP version:      5.2.12
PHP Bug Type:     URL related
Bug description:  The missing trailing slash on the url make an request error.

Description:
------------
Request URL: http://google.de
Response Body:
"The site – www.google.de/test.php – doesn´t exists."

Request URL: http://google.de/
=> It works!

Same problem have andychr17 at hotmail dot com
See note here:
http://de.php.net/manual/de/function.httprequest-construct.php

Reproduce code:
---------------
<?php
//=> Try it with http://www.google.de and someone with
http://www.google.de/

$r = new HttpRequest("http://www.google.de";,
                        HTTP_METH_GET,
                        array('timeout' => 5,
                            'useragent' => 'Mozilla/5.0 (Windows; U;
Windows NT 6.0; de; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6',
                            'redirect' => 3) 
                    );

//Send request
$r->send();
//Only for showing you the result
echo $r->getResponseBody();
?>

Expected result:
----------------
=> See Description for more information

Actual result:
--------------
=> See Description for more information

-- 
Edit bug report at http://bugs.php.net/?id=50587&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50587&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50587&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50587&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50587&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50587&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50587&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50587&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50587&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50587&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50587&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50587&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50587&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50587&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50587&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50587&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50587&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50587&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50587&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50587&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50587&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50587&r=mysqlcfg

Reply via email to