Picture of iqbal
Registered 5 years 278 days
iqbal Friday, 24 February 2023, 08:56 AM
how can i make http_patch request with http_client lib
Hi
i want to make a http patch request to server using sdk http_client lib but http_client.h only exposes
typedef enum {
HTTP_GET,
HTTP_POST,
HTTP_PUT,
HTTP_DELETE
} http_request_type_t;

is there any other configuration that can i use to set http patch request.

BR
Iqbal
Picture of iqbal
Registered 5 years 278 days
iqbal Monday, 27 February 2023, 04:58 PM
Re: how can i make http_patch request with http_client lib
Hi
Is there any update regarding this?
when will it be this availabe in 13r2 SDK?
also one other question:
can i add custom SetHTTPResult for IWebserverPost (incomming post request)?


example:
void RestApiPost::WebserverPostRecvResult(IWebserverPost* const webserverPost, void* buffer, size_t len)
{
webserverPost->SetHTTPResult(&HTTPLib::HTTP_202); for example currently not possible
webserverPost->SetTransferInfo(WSP_RESPONSE_TEXT, 0);
webserverPost->Send(0, 0);
}

BR
Iqbal
Andreas Fink
Moderator Registered 13 years 109 days
Andreas Fink (innovaphone) Tuesday, 28 February 2023, 12:59 PM
Re: how can i make http_patch request with http_client lib
Hello Iqbal,

preliminary, we will add the PATCH method in the HTTP Client Library with next service release (starting with 13r2).

We need some time for testing with 14r1 in order we can safely merge it into 13r2, but it looks good at the moment.

Best Regards
Andreas Fink
Picture of Matthias Schertler (innovaphone)
Moderator Registered 12 years 191 days
Matthias Schertler (innovaphone) Friday, 11 August 2023, 01:04 PM in response to iqbal
Re: how can i make http_patch request with http_client lib
Hi Iqbal,

there is news on this topic.

We added new functionality to the HTTP client in the 13r3 SR9 and 13r2 SR 27.


BR
Marc and Matthias
← You can define your color theme preference here