Re: Is HTTP Stateless ?

From: Polaris (etpolaris_at_hotmail.com)
Date: 03/21/04


Date: Sun, 21 Mar 2004 10:58:10 -0800

Thank you both for making the concept clear for me.

Polaris

"Eric Biggs" <e> wrote in message
news:eLWhYorDEHA.2424@TK2MSFTNGP09.phx.gbl...
> Right, and the main reason for creating a tcp connection upon each request
> and response is for reliability reasons... the connection is mostly used
for
> resending dropped packets etc.
>
> "Sami Vaaraniemi" <samivawantsnospam@jippii.fi> wrote in message
> news:c3i6n6$nq5$1@phys-news1.kolumbus.fi...
> > Yes HTTP is stateless even if it runs on top of TCP.
> >
> > A HTTP conversation essentially consists of a single request and a
single
> > response. After that the "session" is usually gone. Two subsequent
> requests
> > from one client can come through two separate TCP connections. Web
servers
> > do optimize things by keeping the connection alive for a while in case
the
> > client sends another request, but basically all that HTTP sees is one
> > request and a response.
> >
> > In order to maintain session in the web application, programmers need to
> > associate seemingly unrelated HTTP requests from one client somehow. In
> > practice this is done with cookies or storing cookie-like information in
> the
> > URL.
> >
> > Sami
> > www.capehill.net
> >
> > "Polaris" <etpolaris@hotmail.com> wrote in message
> > news:urAhF0qDEHA.2768@tk2msftngp13.phx.gbl...
> > > Read a few books on ASP.NET and seems to me all of them say that HTTP
is
> > > stateless (as a result, it is a complex job to maintain the session
> state
> > of
> > > a web application ,,, blaa, blaaaa...). I just wonder if this
statement
> is
> > > correct? HTTP runs on top of TCP; and TCP is a connection-oriented
> > protocol
> > > in which each conversation (session) is established through a 3-way
> > > handshaking and the session state is maintained by the TCP stack until
> the
> > > client signals to end the conversation (in ASP.NET's web application,
> this
> > > action could be the user's explicit "logout", or his session expires).
> > >
> > > ANY thoughts on this is appreciated.
> > >
> > > Thanks
> > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: Little problem with C program
    ... 'sizeof request' returns the size of a pointer, ... you need to do with HTTP.) ... > message "Reading response ..." ... That system puts the GET inside the function, so I call it like this: ...
    (comp.programming)
  • Re: Screen Scraping a Password Protected Site
    ... http traffic. ... cookies to a singleton CookieContainer and the once you have logged in ... If TypeOf request Is HttpWebRequest Then ... If TypeOf response Is HttpWebResponse Then ...
    (microsoft.public.dotnet.languages.vb)
  • Fwd: Hello
    ... response = meth ... raise HTTPError, code, msg, hdrs, fp) ... But now when I use this http request ...
    (comp.lang.python)
  • Re: Using HttpWebRequest and HttpWebResponse
    ... when an HTTP 4xx or 5xx status is returned. ... variable to WebException.Response - the original response. ... a request to http://someaddress/someresource. ...
    (microsoft.public.dotnet.framework)
  • Re: HTTP question
    ... > then before I receive any response back from the server I issue another GET ... > request for a different web page. ... Will I get an error back from the server? ... HTTP client waits for the first response before sending the second ...
    (comp.infosystems.www.servers.misc)