469,282 Members | 1,701 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Get a file using XMLHTTP

Is this the correct newsgroup for this posting?
I have a problem when using these lines of code:

Dim xmlhttp as Object
set xmlhttp = CreateObject("Microsoft.XMLHTTP")
Call xmlhttp.Open("GET", Application.Profiles.ActiveProfile.Server &
"/Test.abc", False):
Call xmlhttp.send("");

when the last line of code is executed, i get the following error message:

"The download of the specified resource has failed. -2146697208"
Application.Profiles.ActiveProfile.Server = http://x.x.x.x/virtualdirectory
What is wrong with this code?
Thank you
Jul 19 '05 #1
2 2217
serge wrote:
Is this the correct newsgroup for this posting?
Only if you are doing this in server-side asp code. If you are doing it in
client-side code, then .scripting.vbscript would be your best bet, unless
you need to support non-IE browsers, that is, in which case
..scripting.jscript would be better.


I have a problem when using these lines of code:

Dim xmlhttp as Object


No, you're definitely in the wrong place. This is not vbscript, so it can't
be ASP.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2
Thank you Bob for pointing me to the correct newsgroup, i will post in there
next time for
vbscript related code.

I think i found the cause of my problem. If i try downloading a .ABC file it
works.
My actual problem was downloading .VBA

It looks to me the firewall most likely is blocking the .VBA to be
downloaded
(or maybe the anti-virus), because if i try downloading .EXE, that fails
too.

Is this the correct newsgroup for this posting?
Only if you are doing this in server-side asp code. If you are doing it in
client-side code, then .scripting.vbscript would be your best bet, unless
you need to support non-IE browsers, that is, in which case
.scripting.jscript would be better.


I have a problem when using these lines of code:

Dim xmlhttp as Object


No, you're definitely in the wrong place. This is not vbscript, so it

can't be ASP.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by chadschultz | last post: by
ak1dnar
1 post views Thread by ak1dnar | last post: by
reply views Thread by wasif | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.