curl and http header for xml

I run the following curl program to connect to a JSON web service

C:\curl>curl -H "Content-Type: application/json" -d @saml.txt http://localhost:8
081/
{ "name" : "aaa" }

I am using the header application/json

what header do I use for XML

Thanks
Anthony LuciaAsked:
Who is Participating?
 
Randy PooleCommented:
It depends on the type of service.  
application/soap+xml
application/xml
application/rest+xml
text/xml
etc..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.