本文介绍了HTTP状态码数量有问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为http获取一个 HTTP状态代码列表的编号.我用HttpWebResponse
get http a number List of HTTP status codes . what i get that number with HttpWebResponse
推荐答案
int code = (int)HttpWebResponse.StatusCode;
如果HttpWebResponse.StatusCode == OK,则代码==200.
Soren Madsen
If HttpWebResponse.StatusCode == OK, then code == 200.
Soren Madsen
这篇关于HTTP状态码数量有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!