Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11771

Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon.

From "R.Wieser" <address@not.available>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon.
Date 2017-10-12 09:25 +0200
Organization Aioe.org NNTP Server
Message-ID <orn5dm$189f$1@gioia.aioe.org> (permalink)
References (4 earlier) <orlhhv$sda$1@gioia.aioe.org> <orlim3$u6c$1@gioia.aioe.org> <orlpdh$19se$1@gioia.aioe.org> <orluiu$1isd$1@gioia.aioe.org> <orm3fl$1qfj$1@gioia.aioe.org>

Show all headers | View raw


Mayayana,

> If you write your own page fetcher you should
> add gzip support. It's just part of the job of
> downloading webpages

Thats just it  The object is written to specifically cater to HTTP 
transport -- it has method for adding headers, and will, on reception, split 
headers and content -- but for some reason doesn't (fully) revert the (to 
me) transport-only changes made to the data (gzip, deflate and/or others).

So in a sense I agree with you (its part of the job of downloading 
webpages), but I get the distinct feeling we still are not on the same line 
here ...

>  I think winhttp is meant to be a clean, barebones, flexible option.

I think you're right in the "barebone" approach.  I'm just consider the 
absense of reverting the (as far as I'm concerened) the transport 
compression as "going to the marrow". :-(

> But since XP, wnhttp is pre-installed
> on Windows and I discovered that it would allow me
> almost full access to the transaction while still taking
> care of things like encryption, server handshake, etc.

That might be.  But have you *ever* wanted to do, or even *thought* of doing 
your own compression ?

And besides if you did, an object like this which would handle the more 
known compression methods would still allow you to do so (you would just 
need to come up with your own "accept-encoding" compression name -- or have 
it include a "give me the raw, un-decompressed data" method).

No, it doesn't really make sense to me -- no matter in which language you're 
using the object -- not to include support for the known types of 
compression.   You always use them.

> I used to do that from scratch with winsock. The only real options
> were winsock on one extreme or IE wrappers on the other. IE
> wrappers are hokey.

I've done the same myself.   And yes, those IE wrappers are ... 
interresting.  You can disable quite bit of its functionality though, 
including caching and cookie handling.

> Winsock is a lot of work and can't hand;e encryption.

Yeah, I've run into the same thing myself.   And although I found some 
listings showing how to create an SSL connection using MS DLLs only, I never 
found (msdn) information on the dll functions themselves (which means I 
had/have to try to guess the usage of quite a few arguments and results) :-(

Oh well.  Who said that programming would be easy, just stringing functions 
together ?  If they did they probably have never dealt with MS. :-)

Regards,
Rudy Wieser


-- Origional message:
"Mayayana" <mayayana@invalid.nospam> wrote in message 
news:orm3fl$1qfj$1@gioia.aioe.org...
> "R.Wieser" <address@not.available> wrote
>
> | The question is, what can I/someone *do* with data thats still
> compressesed
> | with (something like) gzip ?  Its rather useless in that form, don't you
> | think ?
> |
>
>  The data is usually being collected by a browser.
> If you write your own page fetcher you should
> add gzip support. It's just part of the job of
> downloading webpages. All of that is normally
> hidden by the browser.
>
>  I think winhttp is meant to be a clean, barebones,
> flexible option. The easy API functions, like
> URLDownloadtoFile, are just IE wrappers that can
> affect cache and cookies. Likewise, IE automation
> is sloppy and indirect. But winhttp is clean. It's just
> a light wrapper for winsock, with conveniences.
>
>  I said before that I don't use it but I actually forgot.
> I don't use it in script, but I use it in software. I have
> a program that calls Google map server to get maps,
> satellite, streetview, etc. I used to do that from
> scratch with winsock. The only real options were winsock
> on one extreme or IE wrappers on the other. IE wrappers
> are hokey. Winsock is a lot of work and can't hand;e
> encryption. But since XP, wnhttp is pre-installed
> on Windows and I discovered that it would allow me
> almost full access to the transaction while still taking
> care of things like encryption, server handshake, etc.


Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Cannot get VBS to retrieve a webpage using HTTPS .. "R.Wieser" <address@not.available> - 2017-10-11 13:54 +0200
  Re: Cannot get VBS to retrieve a webpage using HTTPS .. "Mayayana" <mayayana@invalid.nospam> - 2017-10-11 09:11 -0400
    Re: Cannot get VBS to retrieve a webpage using HTTPS .. "R.Wieser" <address@not.available> - 2017-10-11 17:45 +0200
      Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "R.Wieser" <address@not.available> - 2017-10-11 18:24 +0200
        Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "Mayayana" <mayayana@invalid.nospam> - 2017-10-11 12:39 -0400
          Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "R.Wieser" <address@not.available> - 2017-10-11 18:59 +0200
            Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "Mayayana" <mayayana@invalid.nospam> - 2017-10-11 14:53 -0400
              Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "R.Wieser" <address@not.available> - 2017-10-11 22:22 +0200
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "Mayayana" <mayayana@invalid.nospam> - 2017-10-11 17:45 -0400
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "R.Wieser" <address@not.available> - 2017-10-12 09:25 +0200
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "Mayayana" <mayayana@invalid.nospam> - 2017-10-12 10:17 -0400
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "R.Wieser" <address@not.available> - 2017-10-12 19:19 +0200
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "Mayayana" <mayayana@invalid.nospam> - 2017-10-12 14:17 -0400
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "R.Wieser" <address@not.available> - 2017-10-12 23:09 +0200
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "Mayayana" <mayayana@invalid.nospam> - 2017-10-13 12:28 -0400
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "Mayayana" <mayayana@invalid.nospam> - 2017-10-13 14:26 -0400
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "Mayayana" <mayayana@invalid.nospam> - 2017-10-13 18:23 -0400
                Re: Cannot get VBS to retrieve a webpage using HTTPS .. spoke too soon. "R.Wieser" <address@not.available> - 2017-10-14 09:54 +0200

csiph-web