How to convert this curl command in c#?

Which web services have a simple cURL and command line friendly interface exposed via easy to remember URLs?

  • i.e. services similar to http://ifconfig.me where you can execute: "curl http://ifconfig.me" and receive a text response of your machine's IP address, with no further need to parse the result on the command line.

  • Answer:

    Amazon EC2 has an API called instance-data which has a simple interface to query for data about the instance you are on. To see in in action, log into an ec2 host and run the following commands: curl http://169.254.169.254/instance-data/latest/meta-data/instance-data http://169.254.169.254/instance-data/latest/meta-data/user-data For more information, see http://docs.amazonwebservices.com/AmazonEC2/dg/2007-01-03/AESDG-chapter-instancedata.html

Daniel Chen at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.