Goul In Space

My day-day technical notes and chat.

Monday, May 14, 2012

CURL Post a file in json format

I keep having to look this up, so putting it here ought to save some time. When attempting to post a block of JSON to a web service the Curl incantation is :


 curl -X POST  -H 'content-type: application/json'  -d @myjsonfile.txt http://some.url/param
Posted by Paul Goulbourn at 8:56 am 2 comments:
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

Paul Goulbourn
Founder/CEO of Cognitran.
Linked In Profile
View my complete profile

Blog Archive

  • ▼  2012 (2)
    • ►  December (1)
    • ▼  May (1)
      • CURL Post a file in json format
  • ►  2011 (5)
    • ►  May (1)
    • ►  April (4)
  • ►  2009 (6)
    • ►  May (2)
    • ►  February (1)
    • ►  January (3)
  • ►  2008 (5)
    • ►  November (1)
    • ►  July (1)
    • ►  March (2)
    • ►  February (1)
  • ►  2007 (3)
    • ►  November (1)
    • ►  May (2)
  • ►  2006 (8)
    • ►  December (1)
    • ►  October (1)
    • ►  September (2)
    • ►  August (1)
    • ►  April (3)
  • ►  2005 (9)
    • ►  December (1)
    • ►  October (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (3)
    • ►  January (2)
  • ►  2004 (12)
    • ►  December (2)
    • ►  September (2)
    • ►  August (2)
    • ►  July (2)
    • ►  May (2)
    • ►  April (2)
  • ►  2003 (35)
    • ►  December (4)
    • ►  November (2)
    • ►  October (2)
    • ►  September (3)
    • ►  August (2)
    • ►  July (2)
    • ►  June (1)
    • ►  May (3)
    • ►  April (3)
    • ►  March (5)
    • ►  February (4)
    • ►  January (4)
Ethereal theme. Theme images by bopshops. Powered by Blogger.