title: Creating CURL Request ASP.NET
body: <pre><code>curl -X POST 'https://api.twilio.com/2010-04-01/Accounts/AC053acaaf55d75ef32233132196e/Messages.json' \
  --data-urlencode 'To=5555555555'  \
  --data-urlencode 'From=+15555555555'  \
  --data-urlencode 'Body=Test' \
  -u AC053acaaf55d75a393498192382196e:[AuthToken]
  </code></pre>
  
  <p>I have the above curl code for an API I need to connect to. The problem is I need to connect using ASP.NET (C#). I'm not very familiar with ASP.NET and don't really know where to begin. I know how to code this in PHP but ASP.NET is another matter. From the research I've done I need to use WebRequest. How do I feed in the post data and the authtoken (-u AC053acaaf55d75a393498192382196e:[AuthToken])  part of the request. </p>
  
  <pre><code>string url = "https://api.twilio.com/2010-04-01/Accounts/AC053acaaf55d75ef32233132196e/Messages.json";
  WebRequest myReq = WebRequest.Create(url);
  myReq.Method = "POST";
  </code></pre>