I need to POST a JSON Payload to a cloud REST service that requires BASIC Authenticaion. I looked at the HTTPS example guide and created an application with a certificate and a GET Method but I need a POST and Basic Auth. The GET isn't working yet and I suspect it too is due to no Basic Auth being passed. Does anyone have an example?

 

Also, how do I find more information regarding error codes? I also tried to just do an HTTP GET on an HTTPS webpage with no authentication needed and get the same error 

sl_Send failed: -1
0 (0 Stimmen)
RE: Example of HTTPs with Basic Authentication and a POST Payload
Antwort
03.06.19 08:29 als Antwort auf Paul Bruno.

Hello Bruno,

This problem has already been dealt with here:

https://xdk.bosch-connectivity.com/en_GB/community/-/message_boards/message/448021

Just get in touch if that did not help.

regards

Saeid

0 (0 Stimmen)
RE: Example of HTTPs with Basic Authentication and a POST Payload
Antwort
03.06.19 13:33 als Antwort auf Saeid Kajlar.
A couple questions...First, I did not see a POST nor an authentication in that message you linked to. Secondly, the response I get on the connect is -155 which appears to be some issue with CA confirm.. Is that suggesting that the cert I have included is not correctly populated or some other issue?
0 (0 Stimmen)