|
Prev: Is Input$ Really THAT Slow?
Next: VB6 and DMO
From: jim evans on 30 Jul 2008 11:35 I use InternetOpenUrl to fetch the contents of a webpage. It works in XP but in Vista it returns a "not logged in" page from the target website. When you go to the page in Internet Explorer it displays properly. Anybody had experience with this problem?
From: mayayana on 30 Jul 2008 12:08 I don't know about Vista, but I wonder if another method might be easier? There's UrlDownloadToFile, which is a simple file-downloading call. If you want to communicate more directly with the server you can also do it using winsock, bypassing the Internet* APIs that are IE-connected: www.jsware.net/jsware/vbcode.php5#htp > I use InternetOpenUrl to fetch the contents of a webpage. It works > in XP but in Vista it returns a "not logged in" page from the target > website. When you go to the page in Internet Explorer it displays > properly. > > Anybody had experience with this problem?
From: mark.tunnard.jackson on 30 Jul 2008 13:16 I've never tried it, but Karl Peterson has a sample for fetching webpages without API calls or Winsock. It uses the native capability of VB5/6 UserControls to do downloads (including asynchronously). Might be worth a try? http://vb.mvps.org/samples/project.asp?id=netgrab
From: jim evans on 30 Jul 2008 13:35 On Wed, 30 Jul 2008 12:08:53 -0400, "mayayana" <mayaXXyana(a)rcXXn.com> wrote: > I don't know about Vista, but I wonder if another >method might be easier? There's UrlDownloadToFile, >which is a simple file-downloading call. >www.jsware.net/jsware/vbcode.php5#htp Thanks, but that I don't think UrlDownloadToFile handles cookies required to supply logon information.
From: jim evans on 30 Jul 2008 13:58
On Wed, 30 Jul 2008 10:16:21 -0700 (PDT), mark.tunnard.jackson(a)googlemail.com wrote: >I've never tried it, but Karl Peterson has a sample for fetching >webpages without API calls or Winsock. It uses the native capability >of VB5/6 UserControls to do downloads (including asynchronously). >Might be worth a try? > >http://vb.mvps.org/samples/project.asp?id=netgrab Thanks, but I think that does file downloads, not a fetch of webpage source. Also, I don't think it handles logon cookies either. |