Hello List,
I'm running PHP 5.4.9 as CGI (via apache 2.2.22) and can't seem to be
able to send headers to the server.
Both,
header('Status: 500 Internal Server Error');
and,
header('HTTP/1.1 500 Internal Server Error', true, 500);
result in nothing happening on the client side.
What am I
Hi Karim,
On 01/08/13 15:40, Karim Geiger wrote:
Works for me. What happens exactly? Do you get a 200?
That's exactly right - I always get a 200. How can I diagnose this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 02/08/13 14:10, Matijn Woudt wrote:
Did you print some data before using header?
No, not at all. I've PHP configured to complain about notices, warnings
and errors; would've got a warning about headers already sent, which I
don't get.
--
PHP General Mailing List (http://www.php.net/)
T
Great tip, Karim!
On 02/08/13 15:29, Karim Geiger wrote:
Try getting the complete header by using curl -v http://url.com and
paste it here.
What is your output?
Here's my output:
$ curl -v http://localhost/header-test.php
* About to connect() to localhost port 80 (#0)
* Trying 127.0.0.1.
This is strange. I've just found out that the headers are sent
correctly if I access the website outside of localhost. I don't
understand why.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo