Connect, Header Tag, Download 
Author Message
 Connect, Header Tag, Download


I am trying to connect to a website, pass uid&pw as header tag, pass
download parameters for an unassisted download.
I have spent hours, days looking for solution, in vb, VBScript, etc
NGs.  I have tried many diff angles but always one piece doesn't work or
is unacceptable for the task.  Will use script but don't see how to send
header tag, but prefer VB so I can do the rest of my db updates and
reporting at one time.  Example from vendor is in Java which I am not

WebBrowser Control works great for the connection and request but
requires user to save file:
, Headers:="Authorization: Basic PASSWORD" & Chr$(13) & Chr$(10)

Loop Until Not webbrowser .Busy
' kludge to repond to "Save File?" although doesn't always work,
especially when looping to send multiple requests
SendKeys "{ENTER}", True

Loop Until Not webbrowser.Busy
' kludge to repond to "Save As?" and accept the name supplied by website

SendKeys "{ENTER}", True
Loop Until Not webbrowser.Busy

Using Internet Transfer Control am not getting authorized access.
Reading the html returned I can see 'Unauthorized...'
and never quits executing:
sURL = ""
sData =

sHeader = "Authorization: Basic PASSWORD" & Chr$(13) & Chr$(10)

Inet1.Execute sURL, "GET", sData, sHeader

Thanks so much,


Wed, 19 Nov 2003 00:55:53 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Connect, Header Tag, Download

2. Connect, Header Tag, Download

3. auto downloading header file in windows?

4. Downloading PS Header files to LW from Mac?

5. Removing WWW Server HEADERS from download GIF file

6. Downloading the first part of a file / the header

7. Downloading the first part of a file / the header

8. Downloading the first part of a file / the header

9. Pulling Header information BEFORE downloading file??

10. VB MAPI control: explicit download/connect now for MS-MAIL Remote

11. Converting HTML tags to Word tags

12. DL DD Tags Versus Table TD Tags


Powered by phpBB® Forum Software