https://localhost:8080/services/inbox POST < /tmp/testdata/somexml.xml
When I specify the content type via either --header 'Content-type: application/xml' or --content-type 'application/xml', it ends up setting the application/xml header in addition to the auto-set text/xml header:
I'm trying to send an XML file to an application which requires a content-type of 'application/xml'. This doesn't appear to be in the mapping at https://github.com/JoeDog/siege/blob/master/src/load.c#L46.
I'm sending like this from my urls.cfg:
When I specify the content type via either
--header 'Content-type: application/xml'
or--content-type 'application/xml'
, it ends up setting theapplication/xml
header in addition to the auto-settext/xml
header:In this case, the application picks up the
text/xml
header and rejects it.Is there any way to disable content-type guessing based on file extension entirely, and set it manually?