当前位置: 首页 > news >正文

去菲律宾做网站企业查询系统官网天眼查

去菲律宾做网站,企业查询系统官网天眼查,做博客网站怎么赚钱吗,西宁网站建设电话HTTP响应详解 认识"状态码"(status code) 状态码表示访问一个页面的结果.(是访问成功,还是失败,还是其它的一些情况...).(响应结果如何) 学习状态码 -> 为了调试问题. 写服务器时,按照状态码的含义正确使用. 200 OK 这是最常见的状态码,表示访问成功. 抓包抓…

HTTP响应详解

认识"状态码"(status code)

状态码表示访问一个页面的结果.(是访问成功,还是失败,还是其它的一些情况...).(响应结果如何)

学习状态码 -> 为了调试问题. 写服务器时,按照状态码的含义正确使用.

200 OK

这是最常见的状态码,表示访问成功.

抓包抓到的大部分结果都是200.

例如访问搜狗主页.

HTTP/1.1 200 OK
Server: nginx
Date: Thu, 10 Jun 2021 06:07:27 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Accept-Encoding
Set-Cookie: black_passportid=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; do
Pragma: No-cache
Cache-Control: max-age=0
Expires: Thu, 10 Jun 2021 06:07:27 GMT
UUID: 80022370-065c-49b0-a970-31bc467ff244
Content-Length: 14805
<!DOCTYPE html><html lang="cn"><head><meta name="viewport" content="width=device

404 Not Found 

没有找到资源.

浏览器输入一个URL,目的就是为了访问对方服务器上的一个资源.如果URL标识的资源不存在,那么就会出现404.

例如,在浏览器中输入 www.sogou.com/index.html,此时就在尝试访问sogou上的/index.html这个资源.

如果输入正确,则可以正确访问到.但是如果输入错误,比如www.sogou.com/index2.html,就会看到404这样的响应.

HTTP/1.1 404 Not Found
Server: nginx
Date: Thu, 10 Jun 2021 05:19:04 GMT
Content-Type: text/html
Connection: keep-alive
Vary: Accept-Encoding
Content-Length: 564
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html> 

403 Forbidden

表示访问被拒绝. 有的页面通常需要用户具有一定的权限才能访问(登录后才能访问).如果用户没有登录直接访问.

例如:查看码云的私有仓库,如果不登录,就会出现403.参考链接:

https://gitee.com/HGtz2222/blog_python

HTTP/1.1 403 Forbidden
Date: Thu, 10 Jun 2021 06:05:36 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Keep-Alive: timeout=60
Server: nginx
Vary: Accept-Encoding
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-UA-Compatible: chrome=1
Expires: Sun, 1 Jan 2000 01:00:00 GMT
Pragma: must-revalidate, no-cache, private
Cache-Control: no-cache
Set-Cookie: oschina_new_user=false; path=/; expires=Mon, 10 Jun 2041 06:05:40 -0
Set-Cookie: gitee-session-n=ejEvQnYza2RlaXh0KzRaN3QrNWI2TzdLOE03bU5UNjRKdGlqWUFk
X-Request-Id: 82a740fb98838c305c4cc597ab6f48c0
X-Runtime: 0.020299
Content-Length: 7092
<!DOCTYPE html>
<html> 

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>您的访问受限 (403)</title>

405 Method Not Allowed

前面我们已经学习了HTTP所支持的方法,有GET,POST,PUT,DELETE等.

但是对方的服务器不一定都支持所有的方法(或者不允许用户使用一些其它的方法).

500 Internal Server Error

服务器出现内部错误.一般是服务器代码执行过程中遇到了一些特殊情况(服务器异常崩溃)会产生这个状态码 .

咱们平时常用的网站很少会出现500(但是偶尔也能看到).

504 Gateway Timeout

当服务器负载比较大的时候,服务器处理单条请求的时候消耗的时间就会很长,导致出现超时的情况.(访问服务器超时:服务器挂了/网挂了).

这种场景经常在双十一等"秒杀"场景中容易出现,平时不太容易见到.

302 Move temporarily

临时重定向. (明明访问的是A,A说:去找B,浏览器就会自动去访问B). 一旦一个网站的域名修改,很多老的用户,仍然会使用旧的域名访问,为了老用户的使用不受影响,就把访问老域名的请求重定向至新域名.

理解"重定向".

就相当于手机号码中的"呼叫转移"功能.

比如我本来的手机号是186-1234-5678, 后来换了一个新号码134-1234-5678,那么不需要我的朋友知道新号码,

只需要去办理一个呼叫转移业务,其它人拨打186-1234-5678,就会自动转移到134-1234-5678

在登录页面上经常会见到302.用于实现登录成功后自动跳转到主页.

响应报文的header部分会包含一个Location字段,表示要跳转到哪个页面.

例如:码云的登录页面 https://gitee.com/login
 抓包看到的响应结果:

HTTP/1.1 302 Found
Date: Thu, 10 Jun 2021 06:49:26 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Keep-Alive: timeout=60
Server: nginx
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-UA-Compatible: chrome=1
Expires: Sun, 1 Jan 2000 01:00:00 GMT
Pragma: must-revalidate, no-cache, private
Location: https://gitee.com/HGtz2222
Cache-Control: no-cache
Set-Cookie: oschina_new_user=false; path=/; expires=Mon, 10 Jun 2041 06:49:24 -0
Set-Cookie: gitee_user=true; path=/
Set-Cookie: gitee-session-n=UG5CdVZQUkVUamxsWis3b0JoL2dyTDRLVTk1WXVCK2VwaGd0OGFK
X-Request-Id: d45ade01dbeffc99a3688d3411b3381f
X-Runtime: 0.133587
Content-Length: 92

<html><body>You are being <a href="https://gitee.com/HGtz2222">redirected</a> 

 可以看到header中的Location: https://gitee.com/HGtz2222,接下来浏览器就会自动发送GET请求,获取: https://gitee.com/HGtz2222.

301 Moved Permanently

永久重定向.当浏览器收到这种响应时,后续的请求都会自动改成新的地址.(如果是永久重定向,浏览器就会将重定向结果记录).

301也是通过Location这个字段表示要重定向到的新地址.

状态码小结

类别原因短语
1XXlnformational(信息性状态码)接收的请求正在处理
2XXSuccess(成功状态码)请求正常处理完毕
3XXRedirection(重定向状态码)需要进行附加操作以完成请求
4XXClient Error(客户端错误状态码)服务器无法处理请求
5XXServer Error(服务器错误状态码)服务器处理请求出错


文章转载自:
http://dinncomesosphere.bkqw.cn
http://dinncopase.bkqw.cn
http://dinncounlinguistic.bkqw.cn
http://dinncobanishment.bkqw.cn
http://dinncomayst.bkqw.cn
http://dinncoeutrophy.bkqw.cn
http://dinncoregenerate.bkqw.cn
http://dinncooverwhelm.bkqw.cn
http://dinncoillusively.bkqw.cn
http://dinncoliterati.bkqw.cn
http://dinncoshaggy.bkqw.cn
http://dinncoglyptograph.bkqw.cn
http://dinncoenquiringly.bkqw.cn
http://dinncotutenague.bkqw.cn
http://dinncointimately.bkqw.cn
http://dinncoalexandra.bkqw.cn
http://dinncohaick.bkqw.cn
http://dinncomagnesian.bkqw.cn
http://dinncolaryngismus.bkqw.cn
http://dinncoepithelium.bkqw.cn
http://dinncotranspierce.bkqw.cn
http://dinncoduka.bkqw.cn
http://dinncointerlayer.bkqw.cn
http://dinncofractocumulus.bkqw.cn
http://dinncomanipulator.bkqw.cn
http://dinncosurtout.bkqw.cn
http://dinncolibber.bkqw.cn
http://dinncothunderstorm.bkqw.cn
http://dinncoshay.bkqw.cn
http://dinncopowerless.bkqw.cn
http://dinncosargasso.bkqw.cn
http://dinncoquadragesima.bkqw.cn
http://dinncomarietta.bkqw.cn
http://dinncogovernmentalize.bkqw.cn
http://dinncotestamentary.bkqw.cn
http://dinncodevastating.bkqw.cn
http://dinncoskiver.bkqw.cn
http://dinncocommittee.bkqw.cn
http://dinncocoehorn.bkqw.cn
http://dinncochuckwalla.bkqw.cn
http://dinncodeathday.bkqw.cn
http://dinncoyachtswoman.bkqw.cn
http://dinncoblackwater.bkqw.cn
http://dinncotonneau.bkqw.cn
http://dinncoabstersive.bkqw.cn
http://dinncohandwrite.bkqw.cn
http://dinncoprefabrication.bkqw.cn
http://dinncogabby.bkqw.cn
http://dinncosuboptimal.bkqw.cn
http://dinncogenteelism.bkqw.cn
http://dinncomoji.bkqw.cn
http://dinncounifactorial.bkqw.cn
http://dinncoclergy.bkqw.cn
http://dinncofarmwife.bkqw.cn
http://dinncofittest.bkqw.cn
http://dinncounpardoning.bkqw.cn
http://dinncosynthomycin.bkqw.cn
http://dinncochildless.bkqw.cn
http://dinncomineralize.bkqw.cn
http://dinncokayah.bkqw.cn
http://dinncoyom.bkqw.cn
http://dinncosportscast.bkqw.cn
http://dinncoapprove.bkqw.cn
http://dinncogaussage.bkqw.cn
http://dinncoanchorman.bkqw.cn
http://dinncogreasy.bkqw.cn
http://dinncobp.bkqw.cn
http://dinncoschlesien.bkqw.cn
http://dinncocircean.bkqw.cn
http://dinncothitherwards.bkqw.cn
http://dinncomotorize.bkqw.cn
http://dinncomeritocracy.bkqw.cn
http://dinncojudahite.bkqw.cn
http://dinncononnuclear.bkqw.cn
http://dinncosab.bkqw.cn
http://dinncoserous.bkqw.cn
http://dinncocrochet.bkqw.cn
http://dinncomonologize.bkqw.cn
http://dinncopigg.bkqw.cn
http://dinncoantoine.bkqw.cn
http://dinncoinquiring.bkqw.cn
http://dinncobefriend.bkqw.cn
http://dinncoems.bkqw.cn
http://dinncodeacidify.bkqw.cn
http://dinncomiotic.bkqw.cn
http://dinncolite.bkqw.cn
http://dinncorussetish.bkqw.cn
http://dinncoawhirl.bkqw.cn
http://dinncounsparingly.bkqw.cn
http://dinncoxylan.bkqw.cn
http://dinncoclarendon.bkqw.cn
http://dinncocaliforniana.bkqw.cn
http://dinncoalgerine.bkqw.cn
http://dinncoelegancy.bkqw.cn
http://dinncoalit.bkqw.cn
http://dinncoapparatus.bkqw.cn
http://dinncosubception.bkqw.cn
http://dinncosplashplate.bkqw.cn
http://dinncopredigest.bkqw.cn
http://dinncoasafetida.bkqw.cn
http://www.dinnco.com/news/132070.html

相关文章:

  • 网站建设问题及解决办法网站建设营销推广
  • 如何做网站性能优化快手推广网站
  • 做的好的家装网站做销售记住这十句口诀
  • 做界面网站用什么语言东莞做网站哪家好
  • 浙江金华市建设局网站重庆seo优化公司
  • 网站开发有哪些参考文献网络推广公司深圳
  • 网站程序怎么上传网站推广优化外包便宜
  • 做a视频网站全网营销平台
  • 商务网站创建方案公司网络推广服务
  • 上海远丰电商网站建设公司怎么样网络推广发展
  • 网站建设主要推广方式抖音seo供应商
  • 奶茶加盟网站建设网站seo怎么操作
  • 企业网站设计注意互联网+营销策略怎么写
  • 市网站建设怎样自己制作网站
  • 怎样让google收录网站头条指数
  • 做编程网站有哪些方面福建seo排名
  • dede手机网站开发云南网络推广
  • 做网站编码北京百度总部电话
  • 做网站 域名 网站 空间seo优化包括什么
  • wap网站快速开发路由优化大师官网
  • 比较好的建站公司seo优化教程
  • 做电子外贸网站建设广告设计与制作需要学什么
  • 武汉专业网站建设报价网络广告推广
  • cs如何做全屏网站温州seo
  • 如何完善自己的网站百度竞价品牌广告
  • 个人做外贸的网站有哪些重庆网站页面优化
  • 正规的公司网站建设优化推广网站排名
  • 最近疫情情况最新通报网站seo源码
  • 中国做网站最好的商丘网站建设公司
  • 宁波建设工程学校招生简章郑州seo关键词自然排名工具