HTTP status 200
Posted: Fri May 30, 2008 3:40 am
Hi,
Could somebody point me to the correct/best way to retrieve the status of an http response.
i.e., I need to check that the code is 200 (OK) and raise a warning within the application's logs otherwise.
I had a quick scan through the manual but the documentation for HTTPResponse seems rather spartan. Am I even looking in the right section/ right class definition?!
(Sorry, it's been some time since I've used PHP's advanced features - been mostly doing database work these last 12 months)
Many thanks
Jean-Yves
Could somebody point me to the correct/best way to retrieve the status of an http response.
i.e., I need to check that the code is 200 (OK) and raise a warning within the application's logs otherwise.
I had a quick scan through the manual but the documentation for HTTPResponse seems rather spartan. Am I even looking in the right section/ right class definition?!
(Sorry, it's been some time since I've used PHP's advanced features - been mostly doing database work these last 12 months)
Many thanks
Jean-Yves