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.



_______________________________________________
help-cgicc mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cgicc

Reply via email to