Closed CHM1968 closed 3 years ago
Hi @CHM1968. Thanks for your interest in the ArduinoHttpClient library.
I see we already have a prior issue report about this at https://github.com/arduino-libraries/ArduinoHttpClient/issues/87.
It's best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.
If you end up with additional information to share, feel free to comment in the other thread.
Hi, I'm pretty new on Arduino. I'm using ArduinoHttpClient and need to POST a request in secure way (https://). I'm not able to define the https:// on the serverName passed to HttpClient(ethernetClient, serverName, webServerPort). When I use serverName = url (ssl9083.websiteseguro.com or 179.188.19.74) with port 443 the board hangs and after sometime returns -3 on httpClient.responseStatusCode().
I'm using Arduino Uno R3 with Ethernet Shield W5100.
I'd appreciate any help. Below the code.
Thank you in advance.
here the results of the http call: 21:30:49.179 -> IP: 192.168.1.9 21:30:49.179 -> UDP init OK 21:30:54.226 -> HTTP init OK 21:31:05.891 -> Received packet of size 47 21:31:05.891 -> From 192.168.1.32, port 58412 21:31:05.937 -> Contents: 21:31:05.937 -> 000000000000000010330000000017.9090DEADBEEFFEED 21:31:05.985 -> 179.188.19.74 Server 21:31:06.031 -> 443 port 21:31:06.031 -> /cfbinformatica/housemeterhom/MeasurementService.svc/InsertMeasurement Url 21:31:06.125 -> {"meterMAC":"DEADBEEFFEED","measurementValue":0000000017.9090} data 21:31:06.172 -> 62 data length 21:32:07.214 -> -3 Http ret code 21:32:07.214 -> Response: