I Will Remember Before I Forget

Thursday, 6 November 2014

How to send XML via post request to a REST endpoint using curl

curl -X POST -H "Content-Type: application/xml" -H "Cace-Control: no-cache" -H "Postman-Token: 17bf0570-260f-9633-18ef-e5700663207c" -d '<?xml version="1.0" encoding="UTF-8"?> <TAG_UPDATE><TAG_INFO>6451351351</TAG_INFO><TAG_INFO2>6545453</TAG_INFO2><TAG_INFO3>354354534</TAG_INFO3></TAG_UPDATE>' http://localhost:80/name_of_service/operationName
Posted by Poletim at 03:10 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: command line, Linux
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)
Simple theme. Powered by Blogger.

Blog Archive

  • ►  2021 (3)
    • ►  November (1)
    • ►  August (1)
    • ►  March (1)
  • ►  2020 (4)
    • ►  April (2)
    • ►  March (2)
  • ►  2019 (1)
    • ►  November (1)
  • ►  2018 (3)
    • ►  November (1)
    • ►  August (1)
    • ►  May (1)
  • ►  2017 (1)
    • ►  March (1)
  • ►  2016 (3)
    • ►  August (1)
    • ►  June (1)
    • ►  March (1)
  • ►  2015 (7)
    • ►  November (2)
    • ►  September (1)
    • ►  June (2)
    • ►  April (1)
    • ►  February (1)
  • ▼  2014 (6)
    • ▼  November (1)
      • How to send XML via post request to a REST endpoin...
    • ►  April (1)
    • ►  March (1)
    • ►  February (3)
  • ►  2013 (6)
    • ►  December (4)
    • ►  August (1)
    • ►  January (1)
  • ►  2012 (5)
    • ►  December (1)
    • ►  October (2)
    • ►  September (2)
  • ►  2011 (4)
    • ►  November (2)
    • ►  October (1)
    • ►  July (1)