VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HTTP Request Error - The download of the specified resource has failed

2 REPLIES 2
Reply
Message 1 of 3
mclemmer
8107 Views, 2 Replies

HTTP Request Error - The download of the specified resource has failed

Has anyone run across the following error when making an HTTP request?

"the download of the specified resource has failed"

The following code snippet produces the error.

Dim HttpReq As Object
Set HttpReq = CreateObject("MSXML2.XMLHTTP")
HttpReq.Open "POST", "http://127.0.0.1:8080/AppTest/SearchServlet", False
HttpReq.Send 'The error occurs here. "the download of the specified resource has failed"

It doesn't matter if I use synchronous or asynchronous. Or if I use MSXML2.XMLHTTP or Microsoft.XMLHTTP.

The kicker is that this code worked previously when I was using a trial version of AutoCAD, but is now not working after I installed the licensed version. I don't see any connection, but that was the only thing that changed. I'm using AutoCAD 2010 on a Vista PC.
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: mclemmer

Any problem getting the resource via Explorer ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6328834@discussion.autodesk.com...
Has anyone run across the following error when making an HTTP request?

"the download of the specified resource has failed"

The following code snippet produces the error.

Dim HttpReq As Object
Set HttpReq = CreateObject("MSXML2.XMLHTTP")
HttpReq.Open "POST", "http://127.0.0.1:8080/AppTest/SearchServlet", False
HttpReq.Send 'The error occurs here. "the download of the specified resource
has failed"

It doesn't matter if I use synchronous or asynchronous. Or if I use
MSXML2.XMLHTTP or Microsoft.XMLHTTP.

The kicker is that this code worked previously when I was using a trial version
of AutoCAD, but is now not working after I installed the licensed version. I
don't see any connection, but that was the only thing that changed. I'm using
AutoCAD 2010 on a Vista PC.
Message 3 of 3
mclemmer
in reply to: mclemmer

If I simply removed the first line of my code snippet:

Dim HttpReq As Object

It started to work fine again.

Thanks Tony for pointing me in the direction of using IE to see if it worked there. That clued me in on the offending line of code.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost