linux 下使用 curl post

命令:

 curl -X POST -d @/etc/lazada/lazada_tracking.txt   http://localhost:8080/booking/rs/LazadaService/post --header "Content-Type:application/json"

 

-d 后台

 

@/  : post 的 body 体

 eg:

{ "api_key":"EF47A1F38778D", "tracking_url":"http://baudi.com/post", "user_id":"UFL", "customerCode":"HKG041049", "request_flag":"POST_TRACKING_STATUS"}

 

相关文章