Page 1 of 2
Need help for HTTP Client Porting
Posted: Thu Jan 04, 2018 7:27 pm
by Ritesh
Hi,
We had started to look nghttpd2 component and tested http server with all GET, POST, PUT, DELETE requests which are working fine without any issue.
Now, we had requirement to make it same for HTTP Client.
So, Does anyone has any examples or links for that?
In short, we need example source or application for HTTP Client which should be running into ESP32 and can get data and other respective services from server.
Re: Need help for HTTP Client Porting
Posted: Fri Jan 05, 2018 1:42 am
by WiFive
https://github.com/loboris/ESP32_curl_example
Can you publish your nghttp2 server component?
Re: Need help for HTTP Client Porting
Posted: Fri Jan 05, 2018 5:17 pm
by Ritesh
Means, do you need nghttp2 component which we are using?
Or Application code with parser which we are using?
Re: Need help for HTTP Client Porting
Posted: Sat Jan 06, 2018 1:41 am
by WiFive
Just wondering if you built server based on nghttp2 and package it as reusable component
Re: Need help for HTTP Client Porting
Posted: Sat Jan 06, 2018 5:08 am
by Ritesh
WiFive wrote:Just wondering if you built server based on nghttp2 and package it as reusable component
Yes. We already used nghttpd2 as server and able to serve HTTP GET/POST/PUT/DELETE using parser.
Now, we need to implement client instead of server for that.
Please send me some reference links or informations for that if you had any
Re: Need help for HTTP Client Porting
Posted: Sat Jan 06, 2018 5:13 am
by WiFive
You should publish your server on GitHub as a idf component
Here is curl client example from your friend loboris
https://github.com/loboris/ESP32_curl_example
Re: Need help for HTTP Client Porting
Posted: Sat Jan 06, 2018 9:03 am
by loboris
There is also much simpler
esp-request library.
Searching the GitHub can always give you some useful information.
Re: Need help for HTTP Client Porting
Posted: Sat Jan 06, 2018 7:02 pm
by cmorgan
@Ritesh, would you mind providing the output of your 'make size-components'? I'm interested in the overhead in terms of size of a nghttpd server to compare against the httpd server I'm more familiar with, libesphttpd.
Re: Need help for HTTP Client Porting
Posted: Sun Jan 07, 2018 5:03 pm
by Ritesh
cmorgan wrote:@Ritesh, would you mind providing the output of your 'make size-components'? I'm interested in the overhead in terms of size of a nghttpd server to compare against the httpd server I'm more familiar with, libesphttpd.
Ok. Will send details w.r.t. component size tomorrow morning
Re: Need help for HTTP Client Porting
Posted: Sun Jan 07, 2018 5:04 pm
by Ritesh
loboris wrote:There is also much simpler
esp-request library.
Searching the GitHub can always give you some useful information.
Thanks Loboris,
Will check it and get back to you if any query regarding that.