Req #19684 [Opn]: Redirects containing spaces do not work
| From: | borz_off at cs dot msu dot su | Date: | Sun, 09 Dec 2012 19:41:52 +0000 |
| Subject: | Req #19684 [Opn]: Redirects containing spaces do not work | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9401@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19684&edit=1
ID: 19684
Updated by: borz_off@cs.msu.su
Reported By: rudolphi at chemie dot uni-kl dot de
Summary: Redirects containing spaces do not work
Status: Open
Type: Feature/Change Request
-Package: HTTP_Request2
+Package: Net_URL2
Operating System: irrelevant
Package Version: 2.1.1
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
-Package: HTTP_Request2
+Package: Net_URL2
As is noted in the request description itself, URL is handled by
Net_URL2 package, not HTTP_Request2 itself. Moving the request there.
Previous Comments:
------------------------------------------------------------------------
[2012-10-30 21:52:35] chemfelix
Description:
------------
Some web servers do not follow the standard, browsers tolerate it.
Net_URL2 which is used for URL handling is more strict. Spaces in
redirect URLs should be replaced by +.
Test script:
---------------
$request=new
HTTP_Request2("http://www.sigmaaldrich.com/catalog/search/SearchResultsPage?Query=108-88-3&Scope=CASSearch",HTTP_Request2::METHOD_GET);
$request->setConfig("follow_redirects",true);
$request->setConfig("max_redirects",5);
$response=$request->send();
Expected result:
----------------
Redirect to "http://www.sigmaaldrich.com/catalog/search?interface=CAS
No.&term=108-88-3&lang=de®ion=DE&focus=product&N=0+220003048+219853101+219853286&mode=match%20partialmax"
should be performed.
Actual result:
--------------
Redirect is not performed, perhaps an exception is thrown.
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19684&edit=1