Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create HTTP Request object
Message
De
22/12/2016 01:50:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01645753
Message ID:
01645865
Vues:
61
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform