Re: How to read/to download attachment on an URI? [message #172616 is a reply to message #172586] |
Tue, 22 February 2011 08:01 |
Erwin Moller
Messages: 228 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 2/22/2011 2:38 AM, n00m wrote:
> ==================================================
> Btw in VBA it can be done even (much) easier:
> ==================================================
>
> Sub w2()
> Dim o As New WinHttp.WinHttpRequest
> o.Open "GET", "http://stooq.com.ua/q/d/?s=wig20", False
> o.Send
> o.Open "GET", "http://stooq.com.ua/q/d/l/?s=wig20&i=d", False
> o.Send
> MsgBox o.ResponseText
> Set o = Nothing
> End Sub
>
> ==================================================
Hi,
Glad you figured it out.
SO it was the Session that was demanded to proceed? That is quite common
indeed.
About VBA being "much easier": It seem to me VBA is sending cookies as a
default setting when using WinHttp.WinHttpRequest.
I am not sure I would classify that behavior as "much easier". It is
just "much easier" in this case.
Personally I like the detailed control one has when using CURL.
Regards,
Erwin Moller
--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
|
|
|