Article View: borland.public.cppbuilder.internet.web
Article #497Re: Downloading and resuming
From: Will Bright
Date: Wed, 08 Nov 2006 12:44
Date: Wed, 08 Nov 2006 12:44
36 lines
2152 bytes
2152 bytes
This is exactly where my error message is coming from.
if(!HttpSendRequest(hFile, NULL, 0, NULL, 0))
{
ListBox1->Items->Add("HttpSendRequest() " + SysErrorMessage(GetLastError()));
throw Exception("unable to send file request to the server");
}
The reason I got further in the code and gave other messages,
I had commented out the "throw Exception()" calls to just
have it display the message in the listbox.
The message I get back now is "unable to send file request to
the server" but my GetLastError() shows no messages in the
listbox.
Can you confirm these two items for me, I keep wondering if
they are correct or not.
In the InternetOpen() call, is the URL supposed to be the way
I have it here?
InternetConnect hSession, "www.appcontrols.com",
Also in the HttpOpenRequest(), my edtURL->Text is pointing to
this url: http://www.appcontrols.com/download/cronjob.zip
is the format correct?
HttpOpenRequest(hConnect, "HEAD", edtURL->Text.c_str(),
I will have to keep tracing and tsting, I don't get it at the
moment.
Will
Technical Details
Message-ID:
<4551df26@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.germany.com!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>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,f20f86396ab98121 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Will Bright" <no@spam.com> Sender: "Will Bright" <no@spam.com> Reply-To: "Will Bright" <no@spam.com> Subject: Re: Downloading and resuming Newsgroups: borland.public.cppbuilder.internet.web X-User-Info: 66.61.145.120 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> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4551df26@newsgroups.borland.com> Date: 8 Nov 2006 05:44:06 -0700 X-Trace: newsgroups.borland.com 1162993446 207.105.83.66 (8 Nov 2006 05:44:06 -0700) Lines: 37 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail