469,964 Members | 1,515 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

Mozilla browsers request a page twice

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/stoc...?plan=Monashee
(note in this case, a 'GET', the request and response are repeated
identically):
----------------------------------------------------------
http://www.thelogconnection.com/stoc...?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/stoc...?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
----------------------------------------------------------
....[IMAGES ETC FOLLOW....]
Mar 11 '08 #1
2 1850
Gary Hasler wrote:
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.
You might post something on the mozillazine forums:
http://mozillazine.org/

--
Berg
Mar 11 '08 #2
Bergamot wrote:
Gary Hasler wrote:
>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.

You might post something on the mozillazine forums:
http://mozillazine.org/
And these groups on news.mozilla.org may help:

mozilla.general
mozilla.support.seamonkey
mozilla.support.firefox

--
Ed Mullen
http://edmullen.net
Lead me not into temptation (I can find the way myself).
Mar 12 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by David List | last post: by
10 posts views Thread by tony kulik | last post: by
6 posts views Thread by Patrick | last post: by
1 post views Thread by David Gardner | last post: by
5 posts views Thread by niftyhawk | last post: by
5 posts views Thread by Jonel Rienton | last post: by
5 posts views Thread by Tony Brand | last post: by
20 posts views Thread by Prasad | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.