Re: HTTP Download complete detect using TCP sniffer

Tech-Archive recommends: Speed Up your PC by fixing your registry



Well, the best you can do is with a little timeout. Since HTTP
is half-duplex, you always know when the client is requesting
by the fact it's sending data. When the request is sent you start
receiving data until the server is finished before the next request
is placed. Using a timeout after the last packet processed you
will know that either the download is finished, or the server
is hosed and won't send any more data. Alas, distinguishing
between the two is impossible without HTML + HTTP parsing...
BTW, you can't parse HTTPS since it's encrypted.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"fdryan" <fdryan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:451D9CB6-EB0F-4DE0-B9B2-CB1CF98DE4E0@xxxxxxxxxxxxxxxx
Thank you both for the suggestions. Reading the status codes, while it
shows
download progress, does not give me a "download done". A HTTP page could
have multiple 200's as images and other content is downloaded. I want to
avoid HTML parsing if possible as then I get into the whole decoding the
GZIP
content thing and anyway I don't see how that would help me anyway. I
want
to determine the "download complete" at the packet level if at all
possible.

"Vladimir Scherbina" wrote:

Arkady,

I guess, implementing HTML parser/analyzer is not what OP wants ;)

To OP: In HTTP protocol there are status codes that actually maps to some
well-known states, for example, 200 is "OK", 404 is "Not Found", etc. So
you
can anaylize the HTTP protocol in sniffer in order to track the requests
and
their status codes.

--
Vladimir (Windows SDK MVP)

"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:OHZ4cosEHHA.4024@xxxxxxxxxxxxxxxxxxxxxxx
You need to read HTML tags for that
Arkady

"fdryan" <fdryan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:37BF2735-FBB0-4456-8138-C3C64E738A66@xxxxxxxxxxxxxxxx
I have a functioning TCP/IP sniffer operating in promiscous mode and I
can
see the traffic between my machine (client) and the server. I can see
the
packet traffic, the 3 way SYN handshake, and the sequence and
acknowledge
numbers as the download proceeds no problem. There is no "FIN" here
as
the
connection is "kept alive". How do I determine, as soon as possible,
that a
typical web page HTTP(S) Download is complete?






.



Relevant Pages

  • Re: breaking the model
    ... > The forms data then is in the Request object. ... HTTP Request; in this case, the form POST Request from the Page. ... client and server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Client HTTP Status 12031. Server IIS Log 400 w/ Win32 status 121
    ... My suspicion is that the client is sending a request to the ASP page which ... is malformed with regards to its entity body length -- causing the ASP page ... Am doing a synchronous HTTP post in a COM component that resides on a Cold ... where the Client gets a HTTP status ...
    (microsoft.public.inetserver.iis)
  • Re: HTTP Download complete detect using TCP sniffer
    ... its HTML have been received. ... HTTP parsing" would tell me the HTTP download is complete please? ... When the request is sent you start ...
    (microsoft.public.win32.programmer.networks)
  • Re: that preload swf files question again ...
    ... download the swf files. ... As you back-tracked through the HTTP specification from the 206 response to the Range and If-Range headers you will have noticed that this sample of the HTTP traffic was too far down stream of be informative. ... The request that Firefox initially decided not to cache was the first one it made to the server; the one with the 200 response. ... When I make that request the only header returned that is likely to have an impact on the cache-ability of the resource was the Last-Modified header. ...
    (comp.lang.javascript)
  • Re: ASHX Download Large File
    ... Set correct Content-Length. ... downloaded to the client. ... How can I make it appear before the download ... requests a file of a madeup extension and the request is sent to my ...
    (microsoft.public.dotnet.framework.aspnet)