I m 试图通过下载下载SalSharp的文档(图像)
var client = new RestClient(baseUrl);
var request = new RestRequest("GetImage", Method.GET);
var response = client.DownloadData(request);
This works fine, but if the requests returns an error I cannot see the HttpStatus code.
我可以提出请求并检查情况:
var client = new RestClient(baseUrl);
var request = new RestRequest("GetImage", Method.GET);
var response = client.Execute(request);
var status = response.StatusCode;
但是,我不能从内容财产中获取形象。
I m 我没有明显的东西?