[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[help-cgicc] Sending Redirect and Status Headers
From: |
Artyom Beilis |
Subject: |
[help-cgicc] Sending Redirect and Status Headers |
Date: |
Tue, 6 Jan 2009 02:53:12 -0800 (PST) |
Hello,
There is two headers: HTTPRedirectHeader and HTTPStatusHeader. On of the
problems
with them is a fact that sometimes you should send them both
---------------------
Status: 302 Found
Location: /some/new/place
-------------------
Otherwise apache and nginx would not redirect (only lighttpd works for me
without status header).
The problem is that each one of these headers adds "\n\n" at the and and you
can send them as is
So I should add Status header manually
cout<<"Status: 302 Found"<<endl;
cout<<HTTPRedirectHeader("/some/new/place");
Is there way to send both headers together?
I don't see this option in the code, all render() virtual functions send
final "\n\n".
Thanks,
Artyom
--
View this message in context:
http://www.nabble.com/Sending-Redirect-and-Status-Headers-tp21308353p21308353.html
Sent from the cgicc - General mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [help-cgicc] Sending Redirect and Status Headers,
Artyom Beilis <=