By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,553 Members | 1,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,553 IT Pros & Developers. It's quick & easy.

Use of INet Control for downloding from HTTPS site - VB

P: 1
How does this work? I have written code and the ResponseCode returned is zero, I am trying to downlaod a PDF file from a HTTPS site.

I have set the following :

inet1.URL = " 64&sourcePage=displayMyPortfolio"

inet1.Execute , "GET Chevy Chase Funding 2004-4 - November 2007.pdf c:\welcome.pdf"

If I use MsgBox inet1.GetHeader it returns a value so it looks like it is connecting to the web pasge.

Dec 19 '07 #1
Share this Question
Share on Google+
1 Reply

P: 3
I haven't really used Inet that much so sorry if this doesn't help :
Expand|Select|Wrap|Line Numbers
  1. Inet1.URL = ""
  2. contents = Inet1.OpenURL
  3. ' Write 'contents' to a pdf file using binary?
  4. Dim fnum As Integer
  5. fnum = FreeFile
  6. Open file_name For Output As #fnum
  7. Put #fnum, 1, contents
  8. Close fnum
I would use something like that - but the page in question isn't a pdf - its a login page

However I may have completely misunderstood what you were asking for :p
Dec 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.