当前位置: 首页> 汽车> 报价 > html网页制作平台_上海seo公司排名_网站代运营价格_网站权重优化

html网页制作平台_上海seo公司排名_网站代运营价格_网站权重优化

时间:2025/7/11 0:19:26来源:https://blog.csdn.net/weixin_46008548/article/details/145803844 浏览次数: 0次
html网页制作平台_上海seo公司排名_网站代运营价格_网站权重优化

HTTP概述

HTTP(HyperText Transfer Protocol,超文本传输协议),设计HTTP最初的目的是为了提供一种发布和接收HTML页面的方法。

img

  • HTTP定义了多种请求方法,常用的包括:

  • GET:请求资源。

  • POST:提交数据。

  • PUT:更新资源。

  • DELETE:删除资源。

HTTP实验

我们使用一个路由器来模拟客户端

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname Client
[Client]interface G0/0/0
[Client-GigabitEthernet0/0/0]ip address 192.168.1.1 24

Server配置

选择文件根目录,然后启动HTTP服务 

img

使用路由器去发送GET请求

[Client]http get url 192.168.1.2Http getting 192.168.1.2[192.168.1.2]: 1:packets interaction time 20 ms,the link reachable2:packets interaction time 90 ms,the link reachable3:packets interaction time 110 ms,the link reachable4:packets interaction time 90 ms,the link reachable5:packets interaction time 90 ms,the link reachable--- http get result statistics ---Http Get 5 time(s),succeed 5 time(s),failed 0 time(s).round-trip min/avg/max = 90/80/110 ms.

测试访问是没问题的。

但是http是明文传输,所以接口抓包,我们就能看到

我们能直接看到HTTP的,传输的页面内容。

我还可以访问我的一个文件试一试(路径填写你的HTTP服务器,目录下有的文件)

[Client]http get url 192.168.1.2/desktop.iniHttp getting 192.168.1.2/desktop.ini[192.168.1.2]: 1:packets interaction time 60 ms,the link reachable2:packets interaction time 90 ms,the link reachable3:packets interaction time 90 ms,the link reachable4:packets interaction time 100 ms,the link reachable5:packets interaction time 90 ms,the link reachable--- http get result statistics ---Http Get 5 time(s),succeed 5 time(s),failed 0 time(s).round-trip min/avg/max = 90/86/100 ms.

再来看看看抓包

传输的文件内容,都是明文的,验证了HTTP是明文传输。

关键字:html网页制作平台_上海seo公司排名_网站代运营价格_网站权重优化

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: