Re: URL Problem
| From: | C Daniel Chase | Date: | Wed, 21 Apr 2004 18:53:35 +0000 |
| Subject: | Re: URL Problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34020@lists.php.net to get a copy of this message | ||
Lambert, Patrick wrote:
So it sounds like you need to examine the headers of the response (which sounds like it is a redirect)? Try PEAR's HTTP_Request (http://pear.php.net/package/HTTP_Request).This time in PHP using the above: <pre>Array (
[response_code] => 302
[response] => HTTP/1.1 302 Found
[Date] => Wed, 21 Apr 2004 18:50:25 GMT
[Server] => Apache
[Location] => http://www.utc.edu/Administration/Records-Registration/
[Connection] => close
[Content-Type] => text/html; charset=iso-8859-1
)
</pre>
So you will be able to access the Redirect with a nice associative array... Enjoy!
-Dan
--
C. Daniel Chase Dan-Chase@UTC.edu
Web Development Specialist (423) 425-4009
The University of Tennessee at Chattanooga http://www.utc.edu/