Help!

Request using XML Http Object throws an "Access is Denied"..

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA RSS
Next:  Open Appointment form from User Form code and add..  
Author Message
Sangeeta
External


Since: Jun 26, 2006
Posts: 2



PostPosted: Wed Feb 11, 2009 2:20 am    Post subject: Request using XML Http Object throws an "Access is Denied" error
Archived from groups: microsoft>public>outlook>program_vba (more info?)

Hi All,

In my excel programming, I am using XML HTTP object ("MSXML2.XMLHTTP.3.0").
When I try to send request to specific URL, application throws an error
"Access is Denied". Strange thing here is that with Excel 2003 on some
systems it works absolutely fine without throwing any error; but with Excel
2000, 2002, 2007 and even some system with 2003 for XML Http Object it throws
"Access Denied" error.

Following is sample code for same:
sreqstring = "http://abc.com?sess=%25abc" (just an example the way we are
passing the request)

netHttpjspreq.Open "POST", sreqstring, False
netHttpjspreq.send

For second line it thows an error.

Can you please help me out with this?

Thanks,
Sangeeta
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Wed Feb 11, 2009 9:28 am    Post subject: Re: Request using XML Http Object throws an "Access is Denied" error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Not an Outlook question. Pick an Excel group or another that's actually
appropriate.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Sangeeta" <Sangeeta.RemoveThis@discussions.microsoft.com> wrote in message
news:6C7C8173-8A4A-4E6F-8CFF-31AB09E08A1B@microsoft.com...
> Hi All,
>
> In my excel programming, I am using XML HTTP object
> ("MSXML2.XMLHTTP.3.0").
> When I try to send request to specific URL, application throws an error
> "Access is Denied". Strange thing here is that with Excel 2003 on some
> systems it works absolutely fine without throwing any error; but with
> Excel
> 2000, 2002, 2007 and even some system with 2003 for XML Http Object it
> throws
> "Access Denied" error.
>
> Following is sample code for same:
> sreqstring = "http://abc.com?sess=%25abc" (just an example the way we are
> passing the request)
>
> netHttpjspreq.Open "POST", sreqstring, False
> netHttpjspreq.send
>
> For second line it thows an error.
>
> Can you please help me out with this?
>
> Thanks,
> Sangeeta
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum