Curl Command (Linux)

$ curl
[{“Id”:1,”Name”:”Tomato Soup”,”Category”:”Groceries”,”Price”:1.0},{“Id”:2,”Name”:”Yo-yo”,”Category”:”Toys”,”Price”:3.75},{“Id”:3,”Name”:”Hammer”,”Category”:”Hardware”,”Price”:16.99}]

$ curl


Some more examples:




  • When we use curl at the command line to access websites, the traffic doesn’t show up in Fiddler. This is because curl doesn’t use the system proxy by default.  Try this:



Example from the Decision Service Web API

  • $ curl -x -H “Content-Type: application/json” -X POST -d @data.json http://localhost:29074/api/decision







Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s