473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Connection: Keep-Alive vs Connection: Close

With the sniffer ethereal I get a lot of Connections Keep Alive in some
sites like google.com and that returns me the Content-Length in the
HTTP response header.

When the connection is Close I don't get the Content-Length but I get
an hexadecimal number that represents the size of the page but that is
after the header and in the page more precisely.

Is this normal to have this behaviour? I don't know how IE does to get
Connections Keep Alive and the respective Content-Length but between
the GET and the HTTP/1.1 200 OK from the response I see a TCP fragment
that I don't receive in my application.

Does this behaviour of Connection Keep Alive and Connection Close is
part of the HTTP RFC standards? Why does Internet Explorer gets more
connections keep alive than I? What a frustrating task to do.

Any help is appreciated,
Nuno Magalhaes.

Nov 28 '05 #1
1 5183
Read the HTTP Rfc. To get keep alives browser adds specific parameters to
the HTTP header, server recognizes them and doesn't close the connection,
but sends keep-alive....

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com
"Nuno Magalhaes" <nu************@hotmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
With the sniffer ethereal I get a lot of Connections Keep Alive in some
sites like google.com and that returns me the Content-Length in the
HTTP response header.

When the connection is Close I don't get the Content-Length but I get
an hexadecimal number that represents the size of the page but that is
after the header and in the page more precisely.

Is this normal to have this behaviour? I don't know how IE does to get
Connections Keep Alive and the respective Content-Length but between
the GET and the HTTP/1.1 200 OK from the response I see a TCP fragment
that I don't receive in my application.

Does this behaviour of Connection Keep Alive and Connection Close is
part of the HTTP RFC standards? Why does Internet Explorer gets more
connections keep alive than I? What a frustrating task to do.

Any help is appreciated,
Nuno Magalhaes.

Nov 28 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Steve Jorgensen | last post by:
I tried to fix a problem for a client today in which report sections and even individual text controls in some of their reports are being split across page boundaries. Of course, I was thinking...
6
by: Nad | last post by:
Hello, In order to go back to the previous page from a page with possible postbacks I keep Request.Referrer in ViewState and then use it to redirect to the previous page. However I am losing all...
3
by: Alan Wang | last post by:
Hi there, Once my application gets complicated and complicated. I found it's really hard to keep track of Session value I am using in my asp.net application. I am just wondering if anyone have...
0
by: Mike Hoorens | last post by:
Hi there. This looks like a good place to get help with a problem I am having: - We have a c# windows app, which performs an HTTPWebRequest to a IIS box on Internet to retrieve an XML response....
3
by: patrickbeaudoin | last post by:
Hi, I have some application that use the same library in the gac. All these application use the same xml document. I would like to keep that xml document loaded in memoy and dont have to reload...
15
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from...
3
by: nkoriginal | last post by:
Hello: I tried an script for keep my data form after reload page, but I've some errors. In this momento I runnung my own browser because we've an intranet. And for security reason, our page...
11
by: cty0000 | last post by:
I have some quiestion... I want to draw line,point,rectangles and etc... on the from So I code like this.. public update() { g = this.CreateGraphics(); g.FillRectangle(Brushes.White, x1,...
0
by: stefburn | last post by:
Hello Folks, Okay so I'm running a server window to debug some issues. I can keep the server window open by going to the path and opening a command prompt at the path of the <server.exe> file...
0
by: db2admin | last post by:
hello, we take full on sunday and incremental delta rest of the days everyday. i want to keep only 8 weeks of backups on TSM. i am trying to understand the meaning of parameter "keep" in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.