Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for HTTP GET and POST in Raspberry Pi Pico W SDK #1588

Closed
Chrisx43 opened this issue Dec 20, 2023 · 7 comments
Closed

Support for HTTP GET and POST in Raspberry Pi Pico W SDK #1588

Chrisx43 opened this issue Dec 20, 2023 · 7 comments

Comments

@Chrisx43
Copy link

I would like to ask about the current and future support for HTTP GET and POST methods in the Raspberry Pi Pico W SDK

Is there currently the capability or a plan to integrate HTTP GET and POST functionalities into the Raspberry Pi Pico W SDK? These features would be immensely beneficial for projects involving web communication, data retrieval, and integration with online services.

If support for HTTP communication is currently not available, I kindly ask of adding this feature in future releases of the SDK. It would significantly expand the potential use cases and applications for the Raspberry Pi Pico W.

Additional Information:

  • Are there any workarounds or third-party libraries that currently provide HTTP support for the Raspberry Pi Pico W?
  • If HTTP support is planned for a future release, an estimated timeline or roadmap would be appreciated.

Thank you.

@aallan
Copy link
Contributor

aallan commented Dec 20, 2023

Have you looked at the raspberrypi/pico-examples repo? There are networking examples there, e.g. see https://github.com/raspberrypi/pico-examples/tree/master/pico_w/wifi/tls_client for how to make a HTTPS GET request.

@peterharperuk
Copy link
Contributor

There's a http API here - which I hope to get included in the next release

#1388
raspberrypi/pico-examples#385

Feedback welcome.

@Chrisx43
Copy link
Author

Chrisx43 commented Dec 20, 2023

Hey, thanks for the help! I cloned the branch with the http_client example. However, I'm hitting a wall trying to build the http_client, it builds sucessfully but no files in the build folder. Strangely, I can build the other examples in the wifi folder just fine.

Quick question: Is there also a POST function available? I can't check it myself at the moment because there's no definition for the header files in http_client.c, which I suspect is causing the build failure.

Any tips on fixing the build issue and info on the POST function would be awesome

@peterharperuk
Copy link
Contributor

Sorry, I just checked and it builds fine for me. Suggest you start from a clean folder. It doesn't support POST, we're just using the http client that comes from lwip.

@chseAtHms
Copy link

"Is there any possibility that the Pico will soon support POST too?"

@lurch
Copy link
Contributor

lurch commented Dec 21, 2023

I did a quick bit of searching and just found lwip-tcpip/lwip#14
(although I've not tested it mysefl)

@aallan
Copy link
Contributor

aallan commented Dec 21, 2023

@chseAtHms wrote:

"Is there any possibility that the Pico will soon support POST too?"

That's a question you should be asking the LWiP developers. The pico-sdk just pulls the lwip library in from their repo directly as a submodule. If they don't support it, we don't support it.

@lurch wrote:

I did a quick bit of searching and just found lwip-tcpip/lwip#14 (although I've not tested it mysefl)

Oh that's rather nice. Unfortunately there is no chance that's going to get merged into the upstream sitting there. Their repo on Github is just a mirror of the project's actual repo at http://git.savannah.gnu.org/cgit/lwip.git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants