ASP.NET Equivalent to this cURL command

前端 未结 2 828
情深已故
情深已故 2021-01-18 04:05

I\'m working with the Twilio API and it provides examples in PHP and Ruby. I\'m working on a site to send text messages through the API that\'s coded in ASP.NET MVC 3, and u

2条回答
  •  孤城傲影
    2021-01-18 04:46

    Try including

     request.Method = "POST";
    

    and

    request.Credentials = new NetworkCredential("username", "password");
    

提交回复
热议问题