Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing JSON to http Post?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01646398
Message ID:
01646406
Vues:
71
Hi Dmitry,

this is how I send Json by using the addpostkey-method:
cLoginURL = this.cURL + "login"
cContent = "{ " + Chr(34) + "username" + Chr(34) + " : " + Chr(34) + this.cUser + Chr(34) + ", " + Chr(34) + "password" + Chr(34) + " : " + Chr(34) + this.cPasswort + Chr(34) + "}"
this.oHTTP = CREATEOBJECT("wwhttp")
this.oHTTP.AddPostKey(cContent)
this.oHTTP.cExtraHeaders = "content-type:application/json" + CHR(13) + CHR(10)
lcHTML = this.oHTTP.HTTPGet(cLoginURL)
IF this.oHTTP.cResultcode = "200"
...
Best regards

Thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform