ledde
April 2nd, 2001, 10:22
Hi I have a problem using "Location:" on IE 5.0
1. I call a cgi-script from a "<FORM ACTION ="script1.cgi" METHOD="POST"> *input data* </FORM>"
2. The cgi-script wants to redirect to another cgi-script
using
cout << "Location: http://www.domain.com/path/script2.cgi?foo=bar\r\n\r\n" << flush;
3. I want to handle the redirect as a <FORM METHOD="GET">
the problem is on IE 5.00 when I check the environment variable "CONTENT_TYPE" I get a (application-urlencoded)
while I on IE 5.5 don't get any CONTENT_TYPE
So since I sent the URL in GET format I don't want to receive any CONTENT_TYPE since my program then think it's a POST and can't fetch the 'foo' variable
Is this a bugg in IE 5.00??
and is there any way to force a Location: to be sent as a GET
Thanks in advance
// Ledde
1. I call a cgi-script from a "<FORM ACTION ="script1.cgi" METHOD="POST"> *input data* </FORM>"
2. The cgi-script wants to redirect to another cgi-script
using
cout << "Location: http://www.domain.com/path/script2.cgi?foo=bar\r\n\r\n" << flush;
3. I want to handle the redirect as a <FORM METHOD="GET">
the problem is on IE 5.00 when I check the environment variable "CONTENT_TYPE" I get a (application-urlencoded)
while I on IE 5.5 don't get any CONTENT_TYPE
So since I sent the URL in GET format I don't want to receive any CONTENT_TYPE since my program then think it's a POST and can't fetch the 'foo' variable
Is this a bugg in IE 5.00??
and is there any way to force a Location: to be sent as a GET
Thanks in advance
// Ledde