lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] http post using lwip?


From: Bas Prins
Subject: Re: [lwip-users] http post using lwip?
Date: Sat, 2 Jul 2022 08:47:16 +0200

Hi!
Thx a lot. Was't that certain I just needed the extra confirmation that it was as simple as extending the client. Will give this a go after my holidays. I will figure out how to make a pull request after.

Thanks! 

Op za 2 jul. 2022 00:34 schreef Grant Edwards <grant.b.edwards@gmail.com>:
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]