You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Robert Hardy <rk...@excite.com> on 2001/04/25 23:08:16 UTC
general/7623: Posting an html form to the localhost while on the localhost is very slow
>Number: 7623
>Category: general
>Synopsis: Posting an html form to the localhost while on the localhost is very slow
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Apr 25 14:10:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: rkhardy@excite.com
>Release: 1.3.19
>Organization:
apache
>Environment:
Windows 2000 Professional
>Description:
There is an unexplainable delay when I use the method "Post" to submit a form
while on the machine where the web server is installed, i.e. localhost. If I
access the same form over a network connection to my machine it happens
instantaneously, or as fast as the network connection allows. Of if I change
the form method to "Get" then there is no delay when accessing from localhost.
I am posting these forms to PHP scripts, so the problem could lie with PHP.
But I have determined that it must be either Apache or PHP. I would appreciate
any insight anyone can give.
>How-To-Repeat:
Just make a simple html form on your own machine (running windows) that posts
to a PHP script on the same server. Then open an internet browser while on
the same machine where your web server is running. Type in
http://localhost/yourformname.html and try to submit some information with
the form to the PHP script. It will work, but there is a longer than normal
delay every time. Now access your web server from another machine on a browser
by typing in http://yourdomainname.com/yourformname.html and submitting some
information to the PHP script. There is no delay then.
It doesn't matter what the PHP script does with the submitted info, the delay
still happens when browsing from the localhost.
>Fix:
The only way I have figured out is to use the method "Get" instead of "Post".
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]