Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在使用GETin 方法调用 restful 服务时添加标头值Silverlight?
GET
Silverlight
您可以通过 ClientHttp 创建 HttpWebRequest,例如:
var url = new Uri("your url"); var request = (HttpWebRequest)WebRequestCreator.ClientHttp.Create(url); request.Headers[HttpRequestHeader.Pragma] = "no-cache"; request.Method = "GET";