Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - MSXML HTTP get command

Reply
 
Old 05-21-2009   #1 (permalink)
Lou


 
 

MSXML HTTP get command

Any way for a GET command to retrieve a file on the local drive

Example
objhttp.Open "GET", strUrl, False

strUrl is a file on the local system
D:\MyFile.xml

-Lou



My System SpecsSystem Spec
Old 05-21-2009   #2 (permalink)
ekkehard.horner


 
 

Re: MSXML HTTP get command

Lou schrieb:
Quote:

> Any way for a GET command to retrieve a file on the local drive
>
> Example
strUrl = "file://" & "D:\MyFile.xml"
Quote:

> objhttp.Open "GET", strUrl, False
>
[...]
seems to work (though .Status looks fishy). I think you should
use the .load method of the "MSXML2.DOMDocument" object.
My System SpecsSystem Spec
Old 05-26-2009   #3 (permalink)
ekkehard.horner


 
 

Re: MSXML HTTP get command

Lou schrieb:
Quote:

> Thanks for the help on this.
> What is happening is the status returns zero so the app stops processing
> even though
> the data is in the Response Text.
>
> The app is expecting the response text to be OK[200] but since it is a local
> file the
> response is zero and returns an error message.
[...]

Feel free to ignore this, if you 'closed' the problem, especially
as my fallback is speculative/untested. If you have a server installed
on the machine (IIS?) or can install one (needn't to be IIS), that
server could deliver "RSS.xml" via the URL

"http://localhost/whatever/RSS.xml"

Then you would get the 200/Ok.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
MSXML 4.0 Vista Games
3 copies of MSXML 4.0 SP2 ??? Windows Updates
msxml question VB Script
MSXML 4.0 SP2 Parse and SDK Vista performance & maintenance
Command lines like "http://..." does not work anymore! Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46