For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > October 2007 > HTTP_Request redirects









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HTTP_Request redirects
Atif Khan

2007-10-06, 7:03 pm

I have the following line

$req =& new HTTP_Request($url, array('allowRedirects' => 'True',
'maxRedirects' => '1'));

but when I send in the request the header response says that it a
redirect by
giving status 302. But the responseBody does not show the correct
redirected page.

Can someone give me an example of a how to capture a redirected page.

Thank you
Atif.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com