Curl setting Content-Type incorrectly

后端 未结 1 1125
渐次进展
渐次进展 2021-01-31 13:06

I am running a curl operation on the command line and am having trouble forcing the header to set as XML. I use the -H option to force the Content-Type to be xml, however, once

相关标签:
1条回答
  • 2021-01-31 13:50

    I think you want to specify

    -H "Content-Type:text/xml"
    

    with a colon, not an equals.

    0 讨论(0)
提交回复
热议问题