[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] http post using lwip?
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] http post using lwip? |
Date: |
Fri, 01 Jul 2022 21:23:06 +0200 |
User-agent: |
K-9 Mail for Android |
Am 1. Juli 2022 17:48:50 MESZ schrieb Bas Prins <bas.prins3@gmail.com>:
>Dear lwip,
>I'd really appreciate some feedback on this. Would it make sense to extend
>the http_client.c in such a way so that I can choose whether to create
>HTTP_GET or HTTP_POST requests?
Yes.
>
>err_t httpc_get_file_dns(const char* server_name, u16_t port, const char*
>uri, const httpc_connection_t *settings,
>altcp_recv_fn recv_fn, void* callback_arg, httpc_state_t **connection);
>
>For example add parameters to that signature to specify the request type?
>GET/POST + optional post data ?
No, that function is called GET. Add a function called POST and add the new
code there.
> [..] Would it be valuable for the community?
Yes.
Regards,
Simon