cpjamloki
10 years agoVisitor
Getting HTTP response code 400
I have to post http request to server,but i have json data as a parameter like:
So for
So i have made above parameter as string using chr(34). (is it good idea or there is any function for it?)
and it converted as string . then my url.AsyncPostFromString(param) post http request fine.
Even i got msg.GetInt() = 1 means transfer complete.
But i am getting response code from server as 400. (if i am taking
if i am not taking AddHeader then response code coming 415.
i think problem is : parmeter converted in string format using chr(34). is there is any function for it?
help me to solve this issue.
{"abcdefgh":{"isD":false,"soapRequest":{"contractAcceptanceMedium":"WEB"}},"searchCustomerProfileRestRequest":{"soapRequest":{"cSearch":{"address":{"streetAddress1":"NTAwIEUgRnJhbmtsaW4gU3Q=","unitNumber":"NzY0Mg==","zipCode":"MjMyMTk="},"sessionId":""}}},"selectCustomerProfileRestRequest":{"soapRequest":{"sessionId":"","searchSelectionChoice":{}}},"queryBadt":{"soapRequest":}
So for
url.AsyncPostFromString(parameter)i have to pass parameter as string.
So i have made above parameter as string using chr(34). (is it good idea or there is any function for it?)
and it converted as string . then my url.AsyncPostFromString(param) post http request fine.
Even i got msg.GetInt() = 1 means transfer complete.
But i am getting response code from server as 400. (if i am taking
url.AddHeader("Content-Type","application/json")
if i am not taking AddHeader then response code coming 415.
i think problem is : parmeter converted in string format using chr(34). is there is any function for it?
help me to solve this issue.