Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP DELETE request with body
#2
(03-21-2019, 04:40 PM)Maarten de Vries Wrote: Is there a workaround so I can send a DELETE request with a body?

As you have noticed, TIdHTTP does not currently have an overload for the Delete() method that accepts body content. You will have to call the protected DoRequest() method directly, eg:

Code:
type
  TIdHTTPAccess = class(TIdHTTP)
  end;

TIdHTTPAccess(IdHTTP1).DoRequest('DELETE', URL, BodyStreamHere, nil, []);

Reply


Messages In This Thread
RE: HTTP DELETE request with body - by rlebeau - 03-21-2019, 04:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)