开发者

Accessing more data from a 403 response

I've an application that's uploading data to a server. Occasionally the server returns a 403 response from a call to HttpWebRequest.GetRequestStream(). The response contains more data than simply the response code, but I can't figure out how 开发者_运维技巧to access it. Is there a way to do this?


Have you tried calling HttpWebRequest.GetResponse() yet? The HttpWebResponse class provides access to that information.


I think what follows is just the text of the why the server sent back a 403:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜