|
From: | Bas Prins |
Subject: | Re: [lwip-users] http post using lwip? |
Date: | Sat, 2 Jul 2022 08:47:16 +0200 |
On 2022-07-01, Simon Goldschmidt <goldsimon@gmx.de> wrote:
>>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.
Might as well add PUT at the same time?
Maybe DELETE also?
--
Grant
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users
[Prev in Thread] | Current Thread | [Next in Thread] |