DELETE Method Without Content-Type Header?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2021
04:58 AM
10-27-2021
04:58 AM
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
Solved! Go to Solution.
Labels:
- Labels:
-
Function Tests
-
REST
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2021
03:29 PM
10-27-2021
03:29 PM
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
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
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
