【发布时间】:2013-08-29 08:26:09
【问题描述】:
使用 RestSharp 我想使用来自 Windows 窗体应用程序的 Web 服务,使用 C# 来制作桌面应用程序。
我收到了第一个请求的响应, 但是当我发送另一个请求时,我得到一个超时错误。 这是代码
client = new RestClient();
client.BaseUrl = "webservicelink";
client.Authenticator = new DigestAuthenticator("usrnm", "pswd");
var request = new RestRequest();
request.AddParameter("key",JVP8xGk4hsX2cZd0L3NQwYbI0mf4exPiSoAhVYnz");
IRestResponse response = client.Execute(request);
【问题讨论】:
标签: c# web-services rest desktop-application restsharp