Re: URL Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx
Web Development Specialist                        (423) 425-4009
The University of Tennessee at Chattanooga   http://www.utc.edu/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux