http post in https_request example
Posted: Thu Jun 01, 2017 4:21 am
I have tried the http post from https_request example..but am getting the following error , can anyone please say , where am made a mistake...in https_request code in order to post the data from esp32 to webserver...
[0;32mI (30082) example: Starting again![0m
[0;32mI (30082) example: Connected to AP[0m
[0;32mI (30082) example: Connecting to xxxxxxxxx.com:443...[0m
[0;32mI (30322) example: Connected.[0m
[0;32mI (30322) example: Performing the SSL/TLS handshake...[0m
[0;32mI (32422) example: Verifying peer X.509 certificate...[0m
[0;33mW (32422) example: Failed to verify peer certificate![0m
[0;33mW (32422) example: verification info: ! The certificate is not correctly signed by the trusted CA
[0m
[0;32mI (32432) example: Writing HTTP request...[0m
[0;32mI (32442) example: 327 bytes written[0m
[0;32mI (32442) example: Reading HTTP response...[0m
[0;32mI (32442) example: in do while....[0m
[0;32mI (32682) example: 384 bytes written[0m
HTTP/1.1 400 Bad Request
Server: nginx
Date: Thu, 01 Jun 2017 04:06:55 GMT
Content-Type: text/html
Content-Length: 166
Connection: close
Strict-Transport-Security: max-age=31556926; includeSubDomains; preload
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
[0;32mI (30082) example: Starting again![0m
[0;32mI (30082) example: Connected to AP[0m
[0;32mI (30082) example: Connecting to xxxxxxxxx.com:443...[0m
[0;32mI (30322) example: Connected.[0m
[0;32mI (30322) example: Performing the SSL/TLS handshake...[0m
[0;32mI (32422) example: Verifying peer X.509 certificate...[0m
[0;33mW (32422) example: Failed to verify peer certificate![0m
[0;33mW (32422) example: verification info: ! The certificate is not correctly signed by the trusted CA
[0m
[0;32mI (32432) example: Writing HTTP request...[0m
[0;32mI (32442) example: 327 bytes written[0m
[0;32mI (32442) example: Reading HTTP response...[0m
[0;32mI (32442) example: in do while....[0m
[0;32mI (32682) example: 384 bytes written[0m
HTTP/1.1 400 Bad Request
Server: nginx
Date: Thu, 01 Jun 2017 04:06:55 GMT
Content-Type: text/html
Content-Length: 166
Connection: close
Strict-Transport-Security: max-age=31556926; includeSubDomains; preload
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>