Current location - Quotes Website - Team slogan - How to publish xml data with Curl
How to publish xml data with Curl
After some searching, I finally found curl's command to use post:

Echo'<? Xml version ... >;' | curl-X POST-H ' Content-type:text/XML '-d @-http:// 10 . 206 . 30 . 32:808 1/log in registration/register

among

Example:

Request:

Echo'<? Xml version =" 1.0 "encoding ="utf-8"? & gt& lt user & gt ...</user & gt' | curl-X POST-H ' Content-type:text/XML '-d @-http:// 10 . 206 . 30 . 32:808 1/log in registration/register

Response:

& lt? XML version = " 1.0 " encoding = " UTF-8 " standalone = " yes "? & gt& lt user & gt ...</user >

By making relevant judgments, we can know whether the business is normal or not.