Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3619

Insomnia REST Client - Set "Content-Type" for multipart/form-data

$
0
0

TL;DRHow can I set the Content-Type headers for each individual file/input/text in a multipart/form-data request (in Insomnia)?

I'm trying to POST to the OneNote API (HTTP description) using the Insomnia Rest Client. Per the documentation, I need to submit a multipart/form-data request with one file/text with headers:

Content-Type: text/htmlContent-Disposition: form-data; name=presentation

and another with the headers:

Content-Type: application/inkml+xmlContent-Disposition: form-data; name=presentation-onenote-inkml

Here is a screenshot of what I am trying:headersAs you can see, the API returns an error with No Content-Type leading me to believe that the Content-Type header is not set. The debug information is below:debugThe POST data is hidden, which does not allow me to see the Content-Type.


Viewing all articles
Browse latest Browse all 3619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>