471,084 Members | 1,062 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,084 software developers and data experts.

Request using xml http object throws "Access is Denied" error

Hi All,

In my excel programming, I am using XML http object (MSXML2.XMLHTTP.3.0).
Using this object when I try to send a request application throws an "Access
is Denied" error. Strange thing here is that the request absolutely works
fine on some systems with Excel 2003 and doesn't throw any error; but same
patch of code throws an error with Excel 2000, 2002, 2007 and even on some of
2003 systems.

Following is sample of code I am using
(just an example of req we send)
netHttpjspreq is an XML http object

sreqstring = "http://abc.com?sess=%25abc"

netHttpjspreq.Open "POST", sreqstring , False

On second line of code application throws an error.

Can you please help me out with this?

Feb 18 '09 #1
2 5083
2,057 Expert 2GB
First off, have you verified that these URLs are indeed accessible from these other systems? It could be a firewall issue.

Have you tried sending static xmls through any other application, such as curl?
Feb 18 '09 #2
Yeah I did try to access that url with the HttpSendRequest API and with that it works fine. When I am trying to access that url it redirects 3 times to 3 different url and then finally I get the session id.
With xmlhttp object on my system (I have Excel 2003) it works fine; but on m/c with 2000, 2002, 2007 and even on some m/c with 2003 this method throws Access Denied error.

Thanks for replying to my query.

Feb 19 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Riyad | last post: by
reply views Thread by Gururaj Badam | last post: by
2 posts views Thread by Loane Sharp | last post: by
reply views Thread by =?Utf-8?B?TW9udGU=?= | last post: by
6 posts views Thread by =?Utf-8?B?UGF1bA==?= | last post: by
18 posts views Thread by Jeff Bigham | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.