Re: winhttp and downloading a file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Karl E. Peterson" <karl@xxxxxxxx> wrote in message
news:u40UnMauHHA.2008@xxxxxxxxxxxxxxxxxxxxxxx
Steve Gerrard <mynamehere@xxxxxxxxxxx> wrote:
"Karl E. Peterson" <karl@xxxxxxxx> wrote...
strategist <strategist@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I am attempting to download a zip file using winhttp in VB 6.

Good lord, why? WTH add a 20Mb dependency for functionality that's (at
least
mostly) built directly into VB5/6???

What's 20 Mb? On my system, winhttp.dll is 343 Kb, and shows no unusual
dependencies. Am I missing something? It seems to be another version of
msxml.dll, with some extra security foo-foo in it. Never used it, but I have
used msxml.dll.

Perhaps it's my mistake. This page --
http://msdn2.microsoft.com/en-us/library/aa384273.aspx -- led me to believe it
was part of the .NET Framework? Reading a bit closer, I guess that's not the
case. Definitely might be worth exploring, for anyone who doesn't support
9x/NT4 anymore.
--

On your original link, http://msdn2.microsoft.com/en-us/library/aa384106.aspx,
this line tells the story:

"This topic provides information about using the WinHTTP WinHttpRequest COM
object with Visual Basic or with script languages."

That's a COM object, not a .Net object. MS is still using COM (of course), since
they want to support scripting, WMI, etc. Apparently the "specific to .Net 3.0"
message is appearing on every page, regardless of whether it is involved or
not. If you click on the offered .Net 2.0 version, you get the same content,
with a "specific to .Net 2.0" message.

Once again, MS has elected to downgrade the quality of their documentation,
choosing to put this message everywhere, in case some version specific info
might be needed, rather than only on the pages that actually need it. It may be
convenient for them, but it makes the message utterly unreliable. Its sad,
really.



.



Relevant Pages

  • Re: winhttp and downloading a file
    ... Good lord, why? ... WTH add a 20Mb dependency for functionality that's (at least ...
    (microsoft.public.vb.general.discussion)
  • Re: winhttp and downloading a file
    ... WTH add a 20Mb dependency for functionality that's (at least ... part of the .NET Framework? ...
    (microsoft.public.vb.general.discussion)
  • Re: winhttp and downloading a file
    ... Good lord, why? ... WTH add a 20Mb dependency for functionality that's (at ...
    (microsoft.public.vb.general.discussion)
  • Re: winhttp and downloading a file
    ... Good lord, why? ... WTH add a 20Mb dependency for functionality that's (at least ...
    (microsoft.public.vb.general.discussion)
  • Re: Shell execute email
    ... email functionality and realized that no one had written ... includes a text file that shows the differences in file structure ... the winsock dependency, but you'd have to compile it yourself. ... If you want something really simple you might look into CDO, ...
    (microsoft.public.vb.general.discussion)