Wireshark抓包实例分析HTTP问题(下)

2024-06-16 10:08

本文主要是介绍Wireshark抓包实例分析HTTP问题(下),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

        接着上Wireshark抓包实例分析HTTP问题(上),分析Wireshark抓包实例分析HTTP问题。

Client errors:

 

                                                                         
 

Code

 
 

Status

 
 

Explanation

 
 

What    to do

 

400

Bad   request

The   request could not be understood by the server due to a syntax problem.   The request should be modified by the client before resending to it.

Check the   website address. This can also happen due to a site error.

401

Authorization   required

The   client is denied access due to the lack of authentication codes.

Check   your username and password.

402

Payment   required

Reserved   for future use.

 

403

Forbidden

The   client is not allowed to see a specific file. This can be due to the server   access limit.

Check the   credentials. Also, there are fewer chances that the server is loaded.

404

Not found

The   requested resource could not be found.

This can   be because the resource was deleted, or it never existed before. It can also   be due to URL misspellings.

405

Method   not allowed

The   method you are using to access the file is not supported or not allowed by   the resource.

 

406

Not   acceptable

Content   generated by the resource is not acceptable according to the client request.

Check/update   your browser.

407

Proxy   authentication required

Request   authentication is required before it can be performed.

The   client must first authenticate itself with the proxy.

408

Request   timed out

It took   the server longer than the allowed time to process the request.

Check   response time and load on the network.

409

Conflict

The   request submitted by the client cannot be completed because it   conflicts with some established rules.

Can be   because you try to upload a file that is older that the existing one or   similar problems. Check what the client is trying to do.

410

Gone

The URL   requested by the client is no longer available from that system.

Usually   this is a server problem. It can be due to a file that was deleted or   location was forwarded to a new location.

411

Content   length required

The   request is missing itsContent-Length header.

Compatibility   issue on a website. Change/update your browser.

412

Precondition   failed

The   client has not set up a configuration that is required for the file to be   delivered.

Compatibility   issue on a website. Change/update your browser.

413

Request   entity too long

The   requested file was too big to process.

Server   limitation.

414

Request   URI too long

The   address you entered was overly long for the server.

Server   limitation.

415

Unsupported   media type

The file   type of the request is not supported.

Server   limitation.

 

 

以下示例是一个简单的客户端报错。按照以下步骤进行操作:

  1. 右键有报错的报文。
  2. 选择Follow TCP stream,会看到以下窗口:

image002.jpg

   3.  显示以下内容:

  • 客户端尝试浏览URI/poker-client/broadcast.htm(如截屏中1和3所示)
  • URI通过http://www.888poker.com/poker-client/promotions.htm转发(截屏中2所示)
  • 状态码为404 Not Found(如截屏中4所示)

 

Client errors:

                                 
 

Code

 
 

Status

 
 

Explanation

 
 

What    to do

 

500

Internal   server error

The web   server encountered an unexpected condition that prevented it from   carrying out the client request for access to the requested URL.

Response   that is usually caused by a problem in your Perl code when a CGI program is   run.

501

Not   implemented

The   request cannot be executed by the server.

A server   problem.

502

Bad   gateway

The   server you're trying to reach is sending back errors.

A server   problem.

503

Service   unavailable

The   service or file that is being requested is not currently available.

A server   problem.

504

Gateway   timeout

The   gateway has timed out. This message is like the 408 timeout   error, but this one occurs at the gateway of the server.

Server is   down or nonresponsive.

505

HTTP   version not supported

The HTTP   protocol version that you want to use for communicating with the server is   not supported by it.

Server   does not support the HTTP version.

 

服务器不可用(错误代码503)可能有多种原因。以下示例是一个小办公室碰到的问题:员工能够访问Facebook,但当他们点击站点上的链接,则显示页面被拦截。以下截屏中,可看出页面被防火墙拦截:

image003.jpg

 

工作原理:

标准的HTTP浏览模式如下:

  1. TCP打开连接(三路握手信号)
  2. HTTP发送GET命令
  3. 数据下载到浏览器

 

在一个网页打开多个连接的情况下(大多数网页都是如此)。每个连接需要一个DNS 查询,响应,TCP SYN-SYN/ACK-ACK,以及HTTP GET。之后数据才会出现在显示屏上。

 

当你在packet detail面板没有看到显示内容时,右键报文并选择Follow TCP stream,会看到连接的细节数据。另一个广泛应用的工具是Fiddler,Fiddler是HTTP故障排查的免费工具。

这篇关于Wireshark抓包实例分析HTTP问题(下)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1066165

相关文章

详谈redis跟数据库的数据同步问题

《详谈redis跟数据库的数据同步问题》文章讨论了在Redis和数据库数据一致性问题上的解决方案,主要比较了先更新Redis缓存再更新数据库和先更新数据库再更新Redis缓存两种方案,文章指出,删除R... 目录一、Redis 数据库数据一致性的解决方案1.1、更新Redis缓存、删除Redis缓存的区别二

oracle数据库索引失效的问题及解决

《oracle数据库索引失效的问题及解决》本文总结了在Oracle数据库中索引失效的一些常见场景,包括使用isnull、isnotnull、!=、、、函数处理、like前置%查询以及范围索引和等值索引... 目录oracle数据库索引失效问题场景环境索引失效情况及验证结论一结论二结论三结论四结论五总结ora

element-ui下拉输入框+resetFields无法回显的问题解决

《element-ui下拉输入框+resetFields无法回显的问题解决》本文主要介绍了在使用ElementUI的下拉输入框时,点击重置按钮后输入框无法回显数据的问题,具有一定的参考价值,感兴趣的... 目录描述原因问题重现解决方案方法一方法二总结描述第一次进入页面,不做任何操作,点击重置按钮,再进行下

解决mybatis-plus-boot-starter与mybatis-spring-boot-starter的错误问题

《解决mybatis-plus-boot-starter与mybatis-spring-boot-starter的错误问题》本文主要讲述了在使用MyBatis和MyBatis-Plus时遇到的绑定异常... 目录myBATis-plus-boot-starpythonter与mybatis-spring-b

Oracle Expdp按条件导出指定表数据的方法实例

《OracleExpdp按条件导出指定表数据的方法实例》:本文主要介绍Oracle的expdp数据泵方式导出特定机构和时间范围的数据,并通过parfile文件进行条件限制和配置,文中通过代码介绍... 目录1.场景描述 2.方案分析3.实验验证 3.1 parfile文件3.2 expdp命令导出4.总结

Redis主从复制实现原理分析

《Redis主从复制实现原理分析》Redis主从复制通过Sync和CommandPropagate阶段实现数据同步,2.8版本后引入Psync指令,根据复制偏移量进行全量或部分同步,优化了数据传输效率... 目录Redis主DodMIK从复制实现原理实现原理Psync: 2.8版本后总结Redis主从复制实

Node.js 中 http 模块的深度剖析与实战应用小结

《Node.js中http模块的深度剖析与实战应用小结》本文详细介绍了Node.js中的http模块,从创建HTTP服务器、处理请求与响应,到获取请求参数,每个环节都通过代码示例进行解析,旨在帮... 目录Node.js 中 http 模块的深度剖析与实战应用一、引言二、创建 HTTP 服务器:基石搭建(一

锐捷和腾达哪个好? 两个品牌路由器对比分析

《锐捷和腾达哪个好?两个品牌路由器对比分析》在选择路由器时,Tenda和锐捷都是备受关注的品牌,各自有独特的产品特点和市场定位,选择哪个品牌的路由器更合适,实际上取决于你的具体需求和使用场景,我们从... 在选购路由器时,锐捷和腾达都是市场上备受关注的品牌,但它们的定位和特点却有所不同。锐捷更偏向企业级和专

Python如何实现 HTTP echo 服务器

《Python如何实现HTTPecho服务器》本文介绍了如何使用Python实现一个简单的HTTPecho服务器,该服务器支持GET和POST请求,并返回JSON格式的响应,GET请求返回请求路... 一个用来做测试的简单的 HTTP echo 服务器。from http.server import HT

mysql主从及遇到的问题解决

《mysql主从及遇到的问题解决》本文详细介绍了如何使用Docker配置MySQL主从复制,首先创建了两个文件夹并分别配置了`my.cnf`文件,通过执行脚本启动容器并配置好主从关系,文中还提到了一些... 目录mysql主从及遇到问题解决遇到的问题说明总结mysql主从及遇到问题解决1.基于mysql