Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create HTTP Request object
Message
From
22/12/2016 01:50:49
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01645753
Message ID:
01645865
Views:
60
>
>I am getting Authorization Denied message. So something is wrong but not with your code. Thank you.

Were you given credentials to access the service? A username and password? Normally, you have 3 choices to send them to the WebService

1. As an header (through m.HttpRequest.SetRequestHeader);

2. As a parameter (since you're using GET, that would be in the querystring, that is, value pairs after a ? in the URL);

3. Or, more simply, as username and password parameters of the m.HttpRequest.Open method: m.HttpRequest.Open("GET", m.HttpResponseEndPoint, .F., m.UsertName, m.Password) - of course, m.UserName and m.Password being previously set.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform