Need help for HTTP Client Porting

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Need help for HTTP Client Porting

Postby Ritesh » Thu Jan 04, 2018 7:27 pm

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.
Regards,
Ritesh Prajapati

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Need help for HTTP Client Porting

Postby WiFive » Fri Jan 05, 2018 1:42 am

https://github.com/loboris/ESP32_curl_example

Can you publish your nghttp2 server component?

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help for HTTP Client Porting

Postby Ritesh » Fri Jan 05, 2018 5:17 pm

WiFive wrote:https://github.com/loboris/ESP32_curl_example

Can you publish your nghttp2 server component?
Means, do you need nghttp2 component which we are using?

Or Application code with parser which we are using?
Regards,
Ritesh Prajapati

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Need help for HTTP Client Porting

Postby WiFive » Sat Jan 06, 2018 1:41 am

Just wondering if you built server based on nghttp2 and package it as reusable component

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help for HTTP Client Porting

Postby Ritesh » Sat Jan 06, 2018 5:08 am

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
Regards,
Ritesh Prajapati

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Need help for HTTP Client Porting

Postby WiFive » Sat Jan 06, 2018 5:13 am

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

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Need help for HTTP Client Porting

Postby loboris » Sat Jan 06, 2018 9:03 am

There is also much simpler esp-request library.
Searching the GitHub can always give you some useful information.

cmorgan
Posts: 89
Joined: Thu Aug 24, 2017 12:52 am

Re: Need help for HTTP Client Porting

Postby cmorgan » Sat Jan 06, 2018 7:02 pm

@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.

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help for HTTP Client Porting

Postby Ritesh » Sun Jan 07, 2018 5:03 pm

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
Regards,
Ritesh Prajapati

Ritesh
Posts: 1365
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help for HTTP Client Porting

Postby Ritesh » Sun Jan 07, 2018 5:04 pm

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.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: No registered users and 140 guests