Am 1. Juli 2022 17:48:50 MESZ schrieb Bas Prins <[email protected]>: >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 _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
