开发者

Accessing more data from a 403 response

开发者 https://www.devze.com 2022-12-10 17:28 出处:网络
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 th

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

精彩评论

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