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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,225,846
Messages
6,187,362
Members
453,420
Latest member
ESCH1021

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