[Top][All Lists]

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

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

From: Grant Edwards
Subject: Re: [lwip-users] http post using lwip?
Date: Fri, 1 Jul 2022 22:34:27 -0000 (UTC)
User-agent: slrn/1.0.3 (Linux)

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?


reply via email to

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