Mozilla browsers request a page twice

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gary Hasler

    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 "LiveHTTPHeader s" shows these headers, as the
    result of a single click on a link to the page

    (note in this case, a 'GET', the request and response are repeated
    identically):
    ----------------------------------------------------------


    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,ima ge/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
    ----------------------------------------------------------


    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,ima ge/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....]
  • Bergamot

    #2
    Re: Mozilla browsers request a page twice

    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:


    --
    Berg

    Comment

    • Ed Mullen

      #3
      Re: Mozilla browsers request a page twice

      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:

      >
      And these groups on news.mozilla.or g may help:

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

      --
      Ed Mullen
      Help for Mozilla, Firefox and SeaMonkey. Performances and original music.

      Lead me not into temptation (I can find the way myself).

      Comment

      Working...