Forum Discussion

smartbearuser43's avatar
smartbearuser43
Regular Visitor
3 years ago

DELETE Method Without Content-Type Header?

Is it possible to create a DELETE request (either HTTP or REST) without having to supply a Media Type from the dropdown? I need to omit the Content-Type header in my request.

 

Thanks

  • Hey smartbearuser43,

    Do you have a payload associated to your DELETE request?

    If you havent got a payload, then if you remove the value 'application/json' from the MediaType combo box (editable dropdown) so there is no value in the field and then resubmit your request, the Content-Type header is not dynamically generated....i.e. your request wont have the Content-Type header anymore.

    Cheers

    Rich

1 Reply

  • richie's avatar
    richie
    Community Hero
    Hey smartbearuser43,

    Do you have a payload associated to your DELETE request?

    If you havent got a payload, then if you remove the value 'application/json' from the MediaType combo box (editable dropdown) so there is no value in the field and then resubmit your request, the Content-Type header is not dynamically generated....i.e. your request wont have the Content-Type header anymore.

    Cheers

    Rich