Re: HTTP_Request not following redirects
| From: | Alexey Borzov | Date: | Sun, 03 Dec 2006 19:32:13 +0000 |
| Subject: | Re: HTTP_Request not following redirects | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25968@lists.php.net to get a copy of this message | ||
Hi,
diro@nixsys.bz wrote:
HTTP_Client. Redirect support was added to HTTP_Request by its author as an afterthought and doesn't quite fit into the architecture.What was it replaced by?Any ideas? Need more info?Redirect support in HTTP_Request is switched off by default for a reason. That reason being that it wasn't touched for quite a bit of time and is deprecated.
I got the results i wanted by calling new HTTP_Request with an empty URL and allowRedirects and then using setURL to supply the query string.That's hard to believe, since the constructor calls setUrl() method itself.