Article View: borland.public.cppbuilder.internet.web
Article #456Re: downloading with wininet
From: Boba
Date: Tue, 02 Jan 2007 21:13
Date: Tue, 02 Jan 2007 21:13
22 lines
2149 bytes
2149 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:459ac541$1@newsgroups.borland.com... > ... > I am assuming that you have not read RFC 2616 yet: you've got that right. > You are calling InternetReadFile() once, and only once, for each call > to InternetQueryDataAvailable(). If the size of the available data is > larger than your buffer, or InterntReadFile() cannot return that much > data in a single call, then you are NOT reading all of the available > data properly. That is why you must loop the call to > InterntReadFile() to ensure all available data is read in full. i do loop InternetReadFile untill dwBytesDownloaded becomes 0. my problem is not in reading the file, but in convincing the server in client's ability to accept that type of file. the server responds with 406 in a very strange inconsistency, which means i've got to tell it first that i am aware of teh potential MIME problems. i don't understand why the server is not pursistant in its response and how do i create my request header properly.
Technical Details
Message-ID:
<459acad3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4599f9c5@newsgroups.borland.com> <459a2c13$1@newsgroups.borland.com> <459a89d6@newsgroups.borland.com> <459aac49$1@newsgroups.borland.com> <459ab27c@newsgroups.borland.com> <459ac541$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,66a46201c905b896 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Boba" <Boba@somewhere.world> Newsgroups: borland.public.cppbuilder.internet.web References: <4599f9c5@newsgroups.borland.com> <459a2c13$1@newsgroups.borland.com> <459a89d6@newsgroups.borland.com> <459aac49$1@newsgroups.borland.com> <459ab27c@newsgroups.borland.com> <459ac541$1@newsgroups.borland.com> Subject: Re: downloading with wininet Date: Tue, 2 Jan 2007 15:13:42 -0600 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 65.243.37.30 Message-ID: <459acad3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1167772371 65.243.37.30 (2 Jan 2007 13:12:51 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail