Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Http Request macro

When I try to execute this procedure, I've got an "Permission Denied" error.

I've also set System Access security and "Allow System Access".

Sub HttpRequest

 

          Set xml = CreateObject("Microsoft.XMLHTTP")

          xml.Open "POST", "http://www.http://blabla.com/api/test.php", False

          xml.Send()

          MsgBox xml.responseText

End Sub

Where's the problem?!?!

Rob

3 Replies
stephencredmond
Luminary Alumni
Luminary Alumni

Hi Rob,

You need to set both of the drop-downs.

Requested Module Security:  System Access

Current Local Security: Allow System Access

When I do that, your code works (and I put back in the quotes).

Regards,

Stephen

Stephen Redmond is author of QlikView for Developer's Cookbook

He is CTO of CapricornVentis a QlikView Elite Partner. We are always looking for the right people to join our team.

Follow me on Twitter: @stephencredmond

Not applicable
Author

Hi Stephen,

thank you for the quick response.

I've set both drop-downs as you say, but the error still remains.

What other tests can I do?

Screen Shot 2013-06-28 at 15.45.49.png

Rob

stephencredmond
Luminary Alumni
Luminary Alumni

Hi,

Does it work via CScript?  Perhaps there is something else blocking access that is not connected with QlikView.

As I said, it works on my PC.

Regards,

Stephen