Http requests problem

S

Sergio

Hi,

some users of my site have the following problem:
when they post a page containing a form IE sends more than
one http request to the site, with only the first
containing the form data. They get a response to the last
request,
with the script working without data.
Is it normal to have more than one request? Why only the
first contains data?
I tought it could be a cache problem but the connection is
SSL encrypted and the pages are not saved to disk.

They have IE 6.0, Win XP, broadband connection without
proxies, etc.

Thanks
Sergio, Italy


Here is an example of an Http request/response (page and
site names modified)

-- my request (with POST data) --

POST /my_page.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
Referer: https://my_site.it/my_page.php?id=2294
Accept-Language: it
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; .NET CLR 1.0.3705)
Host: my_site.it
Content-Length: 196
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=3cd5b115b12ec5718e97c81309f1a880

s_ragsoc=ROSSI+MARIO&s_indirizzo=VIA+DOBERDO... (post data)


-- my request (empty data) --

POST /my_page.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
Referer: https://my_site.it/my_page.php?id=2294
Accept-Language: it
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; .NET CLR 1.0.3705)
Host: my_site.it
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=3cd5b115b12ec5718e97c81309f1a880
Content-Length: 0


-- my request (empty data) --

POST /my_page.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
Referer: https://my_site.it/my_page.php?id=2294
Accept-Language: it
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; .NET CLR 1.0.3705)
Host: my_site.it
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=3cd5b115b12ec5718e97c81309f1a880
Content-Length: 0


-- finally i get the page --

HTTP/1.1 200 OK
Date: Mon, 08 Mar 2004 10:02:44 GMT
Server: Apache/1.3.28 MicroRack (Unix) PHP/4.3.3
mod_ssl/2.8.15 OpenSSL/0.9.6g
X-Powered-By: PHP/4.3.3
Set-Cookie: PHPSESSID=3cd5b115b12ec5718e97c81309f1a880; path=/
Expires: -1
Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
 
F

Frank Saunders, MS-MVP

Sergio said:
Hi,

some users of my site have the following problem:
when they post a page containing a form IE sends more than
one http request to the site, with only the first
containing the form data. They get a response to the last
request,
with the script working without data.
Is it normal to have more than one request? Why only the
first contains data?
I tought it could be a cache problem but the connection is
SSL encrypted and the pages are not saved to disk.

They have IE 6.0, Win XP, broadband connection without
proxies, etc.

Thanks
Sergio, Italy


Here is an example of an Http request/response (page and
site names modified)

-- my request (with POST data) --

POST /my_page.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
Referer: https://my_site.it/my_page.php?id=2294
Accept-Language: it
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; .NET CLR 1.0.3705)
Host: my_site.it
Content-Length: 196
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=3cd5b115b12ec5718e97c81309f1a880

s_ragsoc=ROSSI+MARIO&s_indirizzo=VIA+DOBERDO... (post data)


-- my request (empty data) --

POST /my_page.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
Referer: https://my_site.it/my_page.php?id=2294
Accept-Language: it
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; .NET CLR 1.0.3705)
Host: my_site.it
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=3cd5b115b12ec5718e97c81309f1a880
Content-Length: 0


-- my request (empty data) --

POST /my_page.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
Referer: https://my_site.it/my_page.php?id=2294
Accept-Language: it
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; .NET CLR 1.0.3705)
Host: my_site.it
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=3cd5b115b12ec5718e97c81309f1a880
Content-Length: 0


-- finally i get the page --

HTTP/1.1 200 OK
Date: Mon, 08 Mar 2004 10:02:44 GMT
Server: Apache/1.3.28 MicroRack (Unix) PHP/4.3.3
mod_ssl/2.8.15 OpenSSL/0.9.6g
X-Powered-By: PHP/4.3.3
Set-Cookie: PHPSESSID=3cd5b115b12ec5718e97c81309f1a880; path=/
Expires: -1
Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

Wininet retries POST requests with a blank header
http://support.microsoft.com/?kbid=831167

--
Frank Saunders, MS-MVP, IE/OE
Please respond in Newsgroup. Do not send email
http://www.fjsmjs.com
Protect your PC
http://www.microsoft.com/security/protect/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top