How do I make calls to a REST API using C#?

后端 未结 15 1605
面向向阳花
面向向阳花 2020-11-22 08:10

This is the code I have so far:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System;
using System.Net.Http;
usi         


        
15条回答
  •  孤街浪徒
    2020-11-22 08:49

    Since you are using Visual Studio 11 Beta, you will want to use the latest and greatest. The new Web API contains classes for this.

    See HttpClient: http://wcf.codeplex.com/wikipage?title=WCF%20HTTP

提交回复
热议问题