使用叶xnet发出请求,但我无法从服务器获取响应。我试过使用postman,它工作得很好,但c#给了我这个错误。
var request = new HttpRequest();
string response = request.Get("XXXX").ToString();
Console.WriteLine(response);Leaf.xNet.HttpException:‘无法接收响应HTTP服务器的消息正文
我尝试将该协议属性设为true,但都不起作用。
发布于 2021-08-13 07:36:36
尝试转到add UserAgent header + put以下代码:
Request.IgnoreProtocolError = truehttps://stackoverflow.com/questions/67454866
复制相似问题