download urls to vars, partially/fully, via WinHttpRequest
Posted: 05 Jan 2017, 14:18
tl;dr
- download file (binary) to variable (via object)
- download file (binary) to variable (via object) (initial n bytes only)
I know that UrlDownloadToFile uses
InternetReadFile to download webpages,
and that with this you can download
files (binary data) and webpages to variables, and if desired,
only the start of the webpage.
One of the reasons to download only
the start of webpage, is to retrieve
the webpage titles for a list of urls.
Is it possible to download all or only the start
of a file (binary data) or webpage via WinHttpRequest,
to a variable?
Note: WinHttpRequest is preferable to
UrlDownloadToFile/InternetReadFile
because its faster.
[EDIT: 100th post! That happened quite quickly.]
- download file (binary) to variable (via object)
- download file (binary) to variable (via object) (initial n bytes only)
I know that UrlDownloadToFile uses
InternetReadFile to download webpages,
and that with this you can download
files (binary data) and webpages to variables, and if desired,
only the start of the webpage.
One of the reasons to download only
the start of webpage, is to retrieve
the webpage titles for a list of urls.
Is it possible to download all or only the start
of a file (binary data) or webpage via WinHttpRequest,
to a variable?
Note: WinHttpRequest is preferable to
UrlDownloadToFile/InternetReadFile
because its faster.
[EDIT: 100th post! That happened quite quickly.]