Hi
I have to upload data to the server by using http POST request and data format is JOSN string. I follow the below code...
Dim Map1 As Map
Map1.Initialize
Dim JSONGenerator As JSONGenerator
Dim JSONstring As String
Map1.put("username","user1")
Map1.put("password","abcdef")
JSONGenerator.Initialize(Map1)
Dim j As HttpJob
j.Initialize("", Me)
j.PostString("http://54.385.735.10/mobility/api/login",JSONGenerator.ToString)
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Msgbox(j.GetString,"")
endif
The JSON string is showing in the correct format.
When we try from the app, the response from the server is blank, but the same i tried from online Http POST tool it is working. Please help me to solve the issue.