Web Data Query using Cookies

99bobster99

Board Regular
Joined
Jul 19, 2004
Messages
95
Hi,

I am trying to access data (download an xls file) from a secure website, that I subscribe to. When I try to download the file using IE, directly, it works fine. When I try to download this file using Excel, via a Web Query, I receive an older, outdated file. I noticed that when I do this using IE a Cookie is exchanged with the server prior to the download. Is there a way to replicate this same cookie exchange using VBA ??

Many thanks.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I've found that "HttpWebRequest", "CookieCotnainer" and "InternetGetCookie" might do the trick. I'm having troubles getting any of the code on the web to extract data from a website requiring cookies. Does anyone have experience with this ??
 
Upvote 0

Forum statistics

Threads
1,226,237
Messages
6,189,792
Members
453,568
Latest member
LaTwiglet85

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top