G
Gary Hasler
I am having various problems with web pages on our site not displaying
the result of form submissions properly for users with Mozilla type
browsers (eg Firefox, Netscape). After investigation I have determined
it is because Mozilla often (but not always) repeats the request for a
web page. Therefore, when a page is showing the result of a form
posting or a redirect, the second request either has no results to show
or is repeating the submission! (although it seems to be happening with
all types of PHP pages, not just ones that result from POSTs).
I have fiddled with the HTTP response header the server is sending, and
searched my code for what could be causing this. I have also looked
through the Mozilla bug list but there is just so much gory detail of
charsets, encoding, caching, etc, that I don't have a clue if I'm
looking in the right direction. Has anyone seen this behaviour before
and can help me?
For instance the add-on "LiveHTTPHeaders" shows these headers, as the
result of a single click on a link to the page
http://www.thelogconnection.com/stockplan_A.php?plan=Monashee
(note in this case, a 'GET', the request and response are repeated
identically):
----------------------------------------------------------
http://www.thelogconnection.com/stockplan_A.php?plan=Monashee
GET /stockplan_A.php?plan=Monashee HTTP/1.1
Host: www.thelogconnection.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12)
Gecko/20080201 Firefox/2.0.0.12
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.thelogconnection.com/stock_plans3.html
Cookie: Pricequote_Form=
.....[SNIP COOKIE CONTENTS]...
HTTP/1.x 200 OK
Date: Tue, 11 Mar 2008 22:20:35 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
----------------------------------------------------------
http://www.thelogconnection.com/stockplan_A.php?plan=Monashee
GET /stockplan_A.php?plan=Monashee HTTP/1.1
Host: www.thelogconnection.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12)
Gecko/20080201 Firefox/2.0.0.12
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.thelogconnection.com/stock_plans3.html
Cookie: Pricequote_Form=
.....[SNIP COOKIE CONTENTS]...
HTTP/1.x 200 OK
Date: Tue, 11 Mar 2008 22:20:35 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
the result of form submissions properly for users with Mozilla type
browsers (eg Firefox, Netscape). After investigation I have determined
it is because Mozilla often (but not always) repeats the request for a
web page. Therefore, when a page is showing the result of a form
posting or a redirect, the second request either has no results to show
or is repeating the submission! (although it seems to be happening with
all types of PHP pages, not just ones that result from POSTs).
I have fiddled with the HTTP response header the server is sending, and
searched my code for what could be causing this. I have also looked
through the Mozilla bug list but there is just so much gory detail of
charsets, encoding, caching, etc, that I don't have a clue if I'm
looking in the right direction. Has anyone seen this behaviour before
and can help me?
For instance the add-on "LiveHTTPHeaders" shows these headers, as the
result of a single click on a link to the page
http://www.thelogconnection.com/stockplan_A.php?plan=Monashee
(note in this case, a 'GET', the request and response are repeated
identically):
----------------------------------------------------------
http://www.thelogconnection.com/stockplan_A.php?plan=Monashee
GET /stockplan_A.php?plan=Monashee HTTP/1.1
Host: www.thelogconnection.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12)
Gecko/20080201 Firefox/2.0.0.12
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.thelogconnection.com/stock_plans3.html
Cookie: Pricequote_Form=
.....[SNIP COOKIE CONTENTS]...
HTTP/1.x 200 OK
Date: Tue, 11 Mar 2008 22:20:35 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
----------------------------------------------------------
http://www.thelogconnection.com/stockplan_A.php?plan=Monashee
GET /stockplan_A.php?plan=Monashee HTTP/1.1
Host: www.thelogconnection.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12)
Gecko/20080201 Firefox/2.0.0.12
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.thelogconnection.com/stock_plans3.html
Cookie: Pricequote_Form=
.....[SNIP COOKIE CONTENTS]...
HTTP/1.x 200 OK
Date: Tue, 11 Mar 2008 22:20:35 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html