Https post request
Answer
8/2/19 2:50 AM

Hi,

I am trying to send a post request via https to my own server but its showing some error. I have enabled http_secure to 1 and the following error showing up. Anybody can help me please?

0 (0 Votes)
RE: Https post request
Answer
8/6/19 3:19 PM as a reply to ghugan sivaperumal.

Hi Ghugan,

The return code 1357 stands for RC_HTTP_SEND_ERROR which is listed within the file Serval_Exceptions.h .

In that regard, did you test, if your web server is reachable with another client except the XDK?

Please note, that the web server is reachable and ready to listen to requests.

Kind regards,
Saeid

0 (0 Votes)
RE: Https post request
Answer
8/13/19 2:32 AM as a reply to Saeid Kajlar.

Hi,

 

Yes the server is reachable when tested using http client such as postman. The http request to external server can be made through xdk. But the problem happens when it comes to https. I just added the ssl certificates under the customer > serverCA.h. I took the the most root ssl certificates and save it as der and convert it to hex. Yet, i still could not able to make any request over https.

0 (0 Votes)