Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing JSON to http Post?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01646398
Message ID:
01646406
Views:
70
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform