Article View: borland.public.cppbuilder.internet.web
Article #517Re: Downloading and resuming
From: Remy Lebeau (TeamB)
Date: Thu, 09 Nov 2006 02:10
Date: Thu, 09 Nov 2006 02:10
17 lines
2111 bytes
2111 bytes
"Will Bright" <no@spam.com> wrote in message news:45527dc0$1@newsgroups.borland.com... > My error is 12150 under HttpQueryInfo(). 12150 is ERROR_HTTP_HEADER_NOT_FOUND, which is defined in wininet.h. So the server is not sending a "Content-Length" header in tis response to begin with. After calling HttpSendRequest(), you should be using HttpQueryInfo() to retreive HTTP_QUERY_STATUS_CODE, and then verify that the value is 200 (sending the whole file) or 206 (sending a portion of the file). Any other value is not a download (though not every value is an error). What is likely happening is that the error is sending some other value for the status code, and your code is not set up to handle it yet. Gambit
Technical Details
Message-ID:
<45528f14$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<454f7d80$1@newsgroups.borland.com> <454fa637$1@newsgroups.borland.com> <454fb7d0$1@newsgroups.borland.com> <454fe1a9$2@newsgroups.borland.com> <454ff6ea$1@newsgroups.borland.com> <4550497c@newsgroups.borland.com> <45512485$1@newsgroups.borland.com> <45512675@newsgroups.borland.com> <45515872$1@newsgroups.borland.com> <45516b6e$1@newsgroups.borland.com> <4551df26@newsgroups.borland.com> <455238e0$1@newsgroups.borland.com> <45526262@newsgroups.borland.com> <455271d3$1@newsgroups.borland.com> <45527dc0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,f20f86396ab98121 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <454f7d80$1@newsgroups.borland.com> <454fa637$1@newsgroups.borland.com> <454fb7d0$1@newsgroups.borland.com> <454fe1a9$2@newsgroups.borland.com> <454ff6ea$1@newsgroups.borland.com> <4550497c@newsgroups.borland.com> <45512485$1@newsgroups.borland.com> <45512675@newsgroups.borland.com> <45515872$1@newsgroups.borland.com> <45516b6e$1@newsgroups.borland.com> <4551df26@newsgroups.borland.com> <455238e0$1@newsgroups.borland.com> <45526262@newsgroups.borland.com> <455271d3$1@newsgroups.borland.com> <45527dc0$1@newsgroups.borland.com> Subject: Re: Downloading and resuming Date: Wed, 8 Nov 2006 18:10:10 -0800 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <45528f14$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1163038484 69.169.4.232 (8 Nov 2006 18:14:44 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail