|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-28 03:41 UTC] thundix at web dot de
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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
Hello, i run the following code: <?php $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(); ?> And get a html code back, where i can find: <title>404 ? Seite nicht gefunden</title> If i run the code in my browser, i see the google search page with the text "Die Seite ? www.google.de/<theNameOfMyPHPFileScript>.php ? existiert nicht." Isn?t it the same on your server? When you also have this i report the bug also here http://pecl.php.net/bugs . Thanks - good night :()