|
#1
|
|||
|
|||
|
Hi,
I am developing a Http server compliant ot Http 1.1. I am having problems in maintaining a persistent connection the moment I enable authorization on the server.the connection is terminated by the client after the authorizing itself following are the messages exchanged between the server being developed and IE 6. Following is what has been captured by Ethereal tool. When the client requests for /ManojDIR the Server requests for Authorization information , the clients requests again with the Authorization information and gets the requested info. All this happens on 168.84.54.156:1516 -- 168.84.54.47:80 Once the client makes the next request it is on a new TCP connection (168.84.54.156:1517 -- 168.84.54.47:80). Why is that so ?. However , if I disable authentication every thing happens on the same TCP Connection(168.84.54.156:1516 -- 168.84.54.47:80). No. Time Source Destination Protocol Info 903 18.792089 168.84.54.156 168.84.54.47 HTTP GET / HTTP/1.1 Frame 903 (429 bytes on wire, 429 bytes captured) Ethernet II, Src: 168.84.54.156 (00:12:3f:2b:f6:79), Dst: 168.84.54.47 (00:50:bf:b1:18:57) Internet Protocol, Src: 168.84.54.156 (168.84.54.156), Dst: 168.84.54.47 (168.84.54.47) Transmission Control Protocol, Src Port: 1516 (1516), Dst Port: http (80), Seq: 1, Ack: 1, Len: 375 Hypertext Transfer Protocol GET / HTTP/1.1\r\n Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*\r\n Accept-Language: en-us\r\n Accept-Encoding: gzip, deflate\r\n User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)\r\n Host: 168.84.54.47\r\n Connection: Keep-Alive\r\n \r\n No. Time Source Destination Protocol Info 909 18.837895 168.84.54.47 168.84.54.156 HTTP HTTP/1.1 200 OK (text/html) Frame 909 (305 bytes on wire, 305 bytes captured) Ethernet II, Src: 168.84.54.47 (00:50:bf:b1:18:57), Dst: 168.84.54.156 (00:12:3f:2b:f6:79) Internet Protocol, Src: 168.84.54.47 (168.84.54.47), Dst: 168.84.54.156 (168.84.54.156) Transmission Control Protocol, Src Port: http (80), Dst Port: 1516 (1516), Seq: 1, Ack: 376, Len: 251 Hypertext Transfer Protocol HTTP/1.1 200 OK\r\n Content-Length:165\r\n Content-Type:text/html\r\n Connection:Keep-Alive\r\n \r\n Line-based text data: text/html <title>Motorola DSR530F</title><body><table> <tr> <td><a href=/ManojDIR>ManojDIR</a></td> </tr><tr> <td><a href=/PariDIR>PariDIR</a></td> </tr></table></body> No. Time Source Destination Protocol Info 1020 21.344730 168.84.54.156 168.84.54.47 HTTP GET /ManojDIR HTTP/1.1 Frame 1020 (467 bytes on wire, 467 bytes captured) Ethernet II, Src: 168.84.54.156 (00:12:3f:2b:f6:79), Dst: 168.84.54.47 (00:50:bf:b1:18:57) Internet Protocol, Src: 168.84.54.156 (168.84.54.156), Dst: 168.84.54.47 (168.84.54.47) Transmission Control Protocol, Src Port: 1516 (1516), Dst Port: http (80), Seq: 376, Ack: 252, Len: 413 Hypertext Transfer Protocol GET /ManojDIR HTTP/1.1\r\n Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*\r\n Referer: http://168.84.54.47\r\n Accept-Language: en-us\r\n Accept-Encoding: gzip, deflate\r\n User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)\r\n Host: 168.84.54.47\r\n Connection: Keep-Alive\r\n \r\n No. Time Source Destination Protocol Info 1023 21.354760 168.84.54.47 168.84.54.156 HTTP HTTP/1.1 401 Unauthorized (text/html) Frame 1023 (352 bytes on wire, 352 bytes captured) Ethernet II, Src: 168.84.54.47 (00:50:bf:b1:18:57), Dst: 168.84.54.156 (00:12:3f:2b:f6:79) Internet Protocol, Src: 168.84.54.47 (168.84.54.47), Dst: 168.84.54.156 (168.84.54.156) Transmission Control Protocol, Src Port: http (80), Dst Port: 1516 (1516), Seq: 252, Ack: 789, Len: 298 Hypertext Transfer Protocol HTTP/1.1 401 Unauthorized\r\n Content-Length:30\r\n Content-Type:text/html\r\n WWW-Authenticate: Digest realm="MotUsers@ird.mot.com", nonce="d2b72868b0adaa5d81b61787fa7f8969", qop="auth,auth-int"\r\n Connection:Keep-Alive\r\n \r\n Line-based text data: text/html <title>Authentication Required Hypertext Transfer Protocol Data (55 bytes) 0000 3c 2f 74 69 74 6c 65 3e 3c 62 6f 64 79 3e 3c 68 </title><body><h 0010 31 3e 20 41 75 74 68 65 6e 74 69 63 61 74 69 6f 1> Authenticatio 0020 6e 20 52 65 71 75 69 72 65 64 20 3c 2f 68 32 3e n Required </h2> 0030 3c 2f 62 6f 64 79 3e </body> No. Time Source Destination Protocol Info 1075 22.552995 168.84.54.156 168.84.54.47 HTTP GET /ManojDIR HTTP/1.1 Frame 1075 (726 bytes on wire, 726 bytes captured) Ethernet II, Src: 168.84.54.156 (00:12:3f:2b:f6:79), Dst: 168.84.54.47 (00:50:bf:b1:18:57) Internet Protocol, Src: 168.84.54.156 (168.84.54.156), Dst: 168.84.54.47 (168.84.54.47) Transmission Control Protocol, Src Port: 1516 (1516), Dst Port: http (80), Seq: 789, Ack: 550, Len: 672 Hypertext Transfer Protocol GET /ManojDIR HTTP/1.1\r\n Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*\r\n Referer: http://168.84.54.47\r\n Accept-Language: en-us\r\n Accept-Encoding: gzip, deflate\r\n User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)\r\n Host: 168.84.54.47\r\n Connection: Keep-Alive\r\n Authorization: Digest username="Manoj", realm="MotUsers@ird.mot.com", qop="auth", algorithm="MD5", uri="/ManojDIR", nonce="d2b72868b0adaa5d81b61787fa7f8969", nc=00000001, cnonce="b107575b136296f3034dcfe1a62b35ca", response="c8107074ce694ca \r\n No. Time Source Destination Protocol Info 1078 22.581142 168.84.54.47 168.84.54.156 HTTP HTTP/1.1 200 OK (text/html) Frame 1078 (311 bytes on wire, 311 bytes captured) Ethernet II, Src: 168.84.54.47 (00:50:bf:b1:18:57), Dst: 168.84.54.156 (00:12:3f:2b:f6:79) Internet Protocol, Src: 168.84.54.47 (168.84.54.47), Dst: 168.84.54.156 (168.84.54.156) Transmission Control Protocol, Src Port: http (80), Dst Port: 1516 (1516), Seq: 550, Ack: 1461, Len: 257 Hypertext Transfer Protocol HTTP/1.1 200 OK\r\n Content-Length:171\r\n Content-Type:text/html\r\n Connection:Keep-Alive\r\n \r\n Line-based text data: text/html <title>Motorola DSR530F</title><body><table> <tr> <td><a href=/ManojDIR2>ManojDIR2</a></td> </tr><tr> <td><a href=/ManojDIR1>ManojDIR1</a></td> </tr></table></body> No. Time Source Destination Protocol Info 1198 25.574918 168.84.54.156 168.84.54.47 HTTP GET /ManojDIR2 HTTP/1.1 Frame 1198 (737 bytes on wire, 737 bytes captured) Ethernet II, Src: 168.84.54.156 (00:12:3f:2b:f6:79), Dst: 168.84.54.47 (00:50:bf:b1:18:57) Internet Protocol, Src: 168.84.54.156 (168.84.54.156), Dst: 168.84.54.47 (168.84.54.47) Transmission Control Protocol, Src Port: 1517 (1517), Dst Port: http (80), Seq: 1, Ack: 1, Len: 683 Hypertext Transfer Protocol GET /ManojDIR2 HTTP/1.1\r\n Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*\r\n Referer: http://168.84.54.47/ManojDIR\r\n Accept-Language: en-us\r\n Accept-Encoding: gzip, deflate\r\n User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)\r\n Host: 168.84.54.47\r\n Connection: Keep-Alive\r\n Authorization: Digest username="Manoj", realm="MotUsers@ird.mot.com", qop="auth", algorithm="MD5", uri="/ManojDIR2", nonce="d2b72868b0adaa5d81b61787fa7f8969", nc=00000002, cnonce="a9a8298e78496d4bf2a8ceccda051a15", response="0148b36075124b \r\n No. Time Source Destination Protocol Info 1200 25.588766 168.84.54.47 168.84.54.156 HTTP HTTP/1.1 401 Unauthorized (text/html) Frame 1200 (352 bytes on wire, 352 bytes captured) Ethernet II, Src: 168.84.54.47 (00:50:bf:b1:18:57), Dst: 168.84.54.156 (00:12:3f:2b:f6:79) Internet Protocol, Src: 168.84.54.47 (168.84.54.47), Dst: 168.84.54.156 (168.84.54.156) Transmission Control Protocol, Src Port: http (80), Dst Port: 1517 (1517), Seq: 1, Ack: 684, Len: 298 Hypertext Transfer Protocol HTTP/1.1 401 Unauthorized\r\n Content-Length:30\r\n Content-Type:text/html\r\n WWW-Authenticate: Digest realm="MotUsers@ird.mot.com", nonce="123af9496ff1813d5a402a498509d9bb", qop="auth,auth-int"\r\n Connection:Keep-Alive\r\n \r\n Line-based text data: text/html <title>Authentication Required Hypertext Transfer Protocol Data (55 bytes) 0000 3c 2f 74 69 74 6c 65 3e 3c 62 6f 64 79 3e 3c 68 </title><body><h 0010 31 3e 20 41 75 74 68 65 6e 74 69 63 61 74 69 6f 1> Authenticatio 0020 6e 20 52 65 71 75 69 72 65 64 20 3c 2f 68 32 3e n Required </h2> 0030 3c 2f 62 6f 64 79 3e </body> No. Time Source Destination Protocol Info 1250 26.624719 168.84.54.156 168.84.54.47 HTTP GET /ManojDIR2 HTTP/1.1 Frame 1250 (737 bytes on wire, 737 bytes captured) Ethernet II, Src: 168.84.54.156 (00:12:3f:2b:f6:79), Dst: 168.84.54.47 (00:50:bf:b1:18:57) Internet Protocol, Src: 168.84.54.156 (168.84.54.156), Dst: 168.84.54.47 (168.84.54.47) Transmission Control Protocol, Src Port: 1517 (1517), Dst Port: http (80), Seq: 684, Ack: 299, Len: 683 Hypertext Transfer Protocol GET /ManojDIR2 HTTP/1.1\r\n Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*\r\n Referer: http://168.84.54.47/ManojDIR\r\n Accept-Language: en-us\r\n Accept-Encoding: gzip, deflate\r\n User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)\r\n Host: 168.84.54.47\r\n Connection: Keep-Alive\r\n Authorization: Digest username="Manoj", realm="MotUsers@ird.mot.com", qop="auth", algorithm="MD5", uri="/ManojDIR2", nonce="123af9496ff1813d5a402a498509d9bb", nc=00000001, cnonce="48b73900efcac4f73985db173aabe07d", response="0d9abf7efab313 \r\n No. Time Source Destination Protocol Info 1252 26.647244 168.84.54.47 168.84.54.156 HTTP HTTP/1.1 200 OK (text/html) Frame 1252 (202 bytes on wire, 202 bytes captured) Ethernet II, Src: 168.84.54.47 (00:50:bf:b1:18:57), Dst: 168.84.54.156 (00:12:3f:2b:f6:79) Internet Protocol, Src: 168.84.54.47 (168.84.54.47), Dst: 168.84.54.156 (168.84.54.156) Transmission Control Protocol, Src Port: http (80), Dst Port: 1517 (1517), Seq: 299, Ack: 1367, Len: 148 Hypertext Transfer Protocol HTTP/1.1 200 OK\r\n Content-Length:63\r\n Content-Type:text/html\r\n Connection:Keep-Alive\r\n \r\n Line-based text data: text/html <title>Motorola DSR530F</title><body><table> </table></body> |
|
#2
|
|||
|
|||
|
"a17763" <a17763@discussions.microsoft.com> wrote in message
news:F2D39AE4-7855-4114-A8F9-B3664F620C9B@microsoft.com > Hi, > I am developing a Http server compliant ot Http 1.1. I am having > problems in maintaining a persistent connection the moment I enable > authorization on the server.the connection is terminated by the > client after the authorizing itself following are the messages > exchanged between the server being developed and IE 6. > Following is what has been captured by Ethereal tool. > When the client requests for /ManojDIR the Server requests for > Authorization information , the clients requests again with the > Authorization information and gets the requested info. All this > happens on 168.84.54.156:1516 -- 168.84.54.47:80 > Once the client makes the next request it is on a new TCP connection > (168.84.54.156:1517 -- 168.84.54.47:80). Why is that so ?. However , > if I disable authentication every thing happens on the same TCP > Connection(168.84.54.156:1516 -- 168.84.54.47:80). And your Outlook Express question is? -- Frank Saunders, MS-MVP OE Please respond in Newsgroup only. Do not send email http://www.fjsmjs.com Protect your PC http://www.microsoft.com./athome/sec...t/default.aspx http://defendingyourmachine.blogspot.com/ |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: printing problems | Rich | Windows XP Print Fax | 0 | 01-05-2006 06:40 AM |
| RE: Intermittently Losing LAN/High Speed Internet Connection PLEASE H | PhilBy | Windows XP Network Web | 1 | 01-05-2006 04:01 AM |
| right click on the Local area connection problem | Noon | Windows XP New Users | 1 | 01-05-2006 02:57 AM |
| right click on the Local area connection problem | Noon | Windows XP New Users | 0 | 01-05-2006 02:57 AM |
| USB-USB File Transfer Cable Connection Problem | tedoniman | Windows XP Basics | 3 | 01-05-2006 02:02 AM |