Im getting crazy with this. For some reason when I do a post request, the server receives a empty content but the content-size is correct. When I do it through postman for example, the content is received normally. Does anyone know what is happening or did has this problem?
Dear @TheScrider, Please note that here HTTP protocol (and not HTTPS) is applied. Most of the current servers can not work with HTTP protocol and require HTTPS.
@@simsiotdevices6219 I know it, I implemented a simple http server to run in a linux. I had to use ws server and to implement a buffer message to make it work. This is for my master degree project, ty for answer me
I want connect to with the localhost server to send the data frm esp32 . I am following this code . But I am getting error like this E (5538) esp-tls: [sock=54] delayed connect error: Connection reset by peer E (5538) TRANSPORT_BASE: Failed to open a new connection: 32772 E (5538) HTTP_CLIENT: Connection failed, sock < 0 How to solve this?
Dear K K, Please check the type of server that you are trying to connect to. The absolute majority of the servers are secure HTTPS. I have published a playlist for it: th-cam.com/play/PLgrKXQgo8LPu1m7XLXNMgHw28kK3UwqUc.html The current video is a simplified version regarding only HTTP servers which are extremely rare, but with much simpler code.
Dear @user-gi2tv7gq5l, In the same GitHub directory, you have: github.com/SIMS-IOT-Devices/FreeRTOS-ESP-IDF-HTTP-Client/blob/main/my_data.h Please add this file with correct credentials to your main folder.
Dear @user-ym7qc3jv5t, If I understood correctly, you want to use bearer tokens as part of the OAuth 2.0 framework authorization. I have multiple inquiries on this subject and put a request for the video regarding this on the wish list.
Dear Sandip, I understand from your message that: esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_configuration); the line was changed and worked correctly with the following: esp_wifi_set_config(ESP_IF_WIFI_AP, &wifi_configuration); right?
@@simsiotdevices6219 ok my question is there should be STA or AP. I tried with both but i am getting error. I have one doubt my url content https because of it is signed rest api of AWS to get certificate. Please guide me
Dear @@Sandipmaurya001 , You are using the HTTP code. For HTTPS I suggest to consider the following playlist: FreeRTOS ESP IDF - HTTPS Client & Server (Firebase - Firestore database) th-cam.com/play/PLgrKXQgo8LPu1m7XLXNMgHw28kK3UwqUc.html
Dear @user-ym7qc3jv5t, The evt is defined as esp_http_client_event_handle_t type variable when the definition of esp_http_client_event_handle_t is: typedef struct esp_http_client_event *esp_http_client_event_handle_t So yes, evt is a pointer to struct esp_http_client_event.
man you are the best doing idf projects thank you!
Wow, thanks!
Thanks a lot for this video !!
Glad it was helpful!
Hello did you some tutorials for async http too?
Dear Michael,
We on this channel are trying to concentrate on ESP IDF.
I thought that on TH-cam a lot of good tutorials regarding async HTTP.
Im getting crazy with this. For some reason when I do a post request, the server receives a empty content but the content-size is correct. When I do it through postman for example, the content is received normally. Does anyone know what is happening or did has this problem?
Dear @TheScrider,
Please note that here HTTP protocol (and not HTTPS) is applied. Most of the current servers can not work with HTTP protocol and require HTTPS.
@@simsiotdevices6219 I know it, I implemented a simple http server to run in a linux. I had to use ws server and to implement a buffer message to make it work. This is for my master degree project, ty for answer me
I want connect to with the localhost server to send the data frm esp32 . I am following this code . But I am getting error like this
E (5538) esp-tls: [sock=54] delayed connect error: Connection reset by peer
E (5538) TRANSPORT_BASE: Failed to open a new connection: 32772
E (5538) HTTP_CLIENT: Connection failed, sock < 0
How to solve this?
Dear K K,
Please check the type of server that you are trying to connect to. The absolute majority of the servers are secure HTTPS. I have published a playlist for it:
th-cam.com/play/PLgrKXQgo8LPu1m7XLXNMgHw28kK3UwqUc.html
The current video is a simplified version regarding only HTTP servers which are extremely rare, but with much simpler code.
Hi, because this test url unavailable now.
im getting error as my_data.h no such file or directory
Dear @user-gi2tv7gq5l,
In the same GitHub directory, you have:
github.com/SIMS-IOT-Devices/FreeRTOS-ESP-IDF-HTTP-Client/blob/main/my_data.h
Please add this file with correct credentials to your main folder.
@@simsiotdevices6219
Thank You so much
how can i put bearer token into header?
Dear @user-ym7qc3jv5t,
If I understood correctly, you want to use bearer tokens as part of the OAuth 2.0 framework authorization. I have multiple inquiries on this subject and put a request for the video regarding this on the wish list.
I am using this code but it is in soft ap mode
Dear Sandip,
I understand from your message that:
esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_configuration);
the line was changed and worked correctly with the following:
esp_wifi_set_config(ESP_IF_WIFI_AP, &wifi_configuration);
right?
@@simsiotdevices6219 ok my question is there should be STA or AP.
I tried with both but i am getting error. I have one doubt my url content https because of it is signed rest api of AWS to get certificate.
Please guide me
Dear @@Sandipmaurya001 ,
You are using the HTTP code. For HTTPS I suggest to consider the following playlist:
FreeRTOS ESP IDF - HTTPS Client & Server (Firebase - Firestore database)
th-cam.com/play/PLgrKXQgo8LPu1m7XLXNMgHw28kK3UwqUc.html
evt should be pointer
Dear @user-ym7qc3jv5t,
The evt is defined as esp_http_client_event_handle_t type variable when the definition of esp_http_client_event_handle_t is:
typedef struct esp_http_client_event *esp_http_client_event_handle_t
So yes, evt is a pointer to struct esp_http_client_event.