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

相关文章

解决tomcat启动时报Junit相关错误java.lang.ClassNotFoundException: org.junit.Test问题

《解决tomcat启动时报Junit相关错误java.lang.ClassNotFoundException:org.junit.Test问题》:本文主要介绍解决tomcat启动时报Junit相... 目录tomcat启动时报Junit相关错误Java.lang.ClassNotFoundException

解决Maven项目报错:failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题

《解决Maven项目报错:failedtoexecutegoalorg.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题》这篇文章主要介... 目录Maven项目报错:failed to execute goal org.apache.maven.pl

MySQL主从同步延迟问题的全面解决方案

《MySQL主从同步延迟问题的全面解决方案》MySQL主从同步延迟是分布式数据库系统中的常见问题,会导致从库读取到过期数据,影响业务一致性,下面我将深入分析延迟原因并提供多层次的解决方案,需要的朋友可... 目录一、同步延迟原因深度分析1.1 主从复制原理回顾1.2 延迟产生的关键环节二、实时监控与诊断方案

SQLyog中DELIMITER执行存储过程时出现前置缩进问题的解决方法

《SQLyog中DELIMITER执行存储过程时出现前置缩进问题的解决方法》在SQLyog中执行存储过程时出现的前置缩进问题,实际上反映了SQLyog对SQL语句解析的一个特殊行为,本文给大家介绍了详... 目录问题根源正确写法示例永久解决方案为什么命令行不受影响?最佳实践建议问题根源SQLyog的语句分

慢sql提前分析预警和动态sql替换-Mybatis-SQL

《慢sql提前分析预警和动态sql替换-Mybatis-SQL》为防止慢SQL问题而开发的MyBatis组件,该组件能够在开发、测试阶段自动分析SQL语句,并在出现慢SQL问题时通过Ducc配置实现动... 目录背景解决思路开源方案调研设计方案详细设计使用方法1、引入依赖jar包2、配置组件XML3、核心配

Python开发文字版随机事件游戏的项目实例

《Python开发文字版随机事件游戏的项目实例》随机事件游戏是一种通过生成不可预测的事件来增强游戏体验的类型,在这篇博文中,我们将使用Python开发一款文字版随机事件游戏,通过这个项目,读者不仅能够... 目录项目概述2.1 游戏概念2.2 游戏特色2.3 目标玩家群体技术选择与环境准备3.1 开发环境3

Java NoClassDefFoundError运行时错误分析解决

《JavaNoClassDefFoundError运行时错误分析解决》在Java开发中,NoClassDefFoundError是一种常见的运行时错误,它通常表明Java虚拟机在尝试加载一个类时未能... 目录前言一、问题分析二、报错原因三、解决思路检查类路径配置检查依赖库检查类文件调试类加载器问题四、常见

解决IDEA报错:编码GBK的不可映射字符问题

《解决IDEA报错:编码GBK的不可映射字符问题》:本文主要介绍解决IDEA报错:编码GBK的不可映射字符问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录IDEA报错:编码GBK的不可映射字符终端软件问题描述原因分析解决方案方法1:将命令改为方法2:右下jav

MyBatis模糊查询报错:ParserException: not supported.pos 问题解决

《MyBatis模糊查询报错:ParserException:notsupported.pos问题解决》本文主要介绍了MyBatis模糊查询报错:ParserException:notsuppo... 目录问题描述问题根源错误SQL解析逻辑深层原因分析三种解决方案方案一:使用CONCAT函数(推荐)方案二:

Python中的Walrus运算符分析示例详解

《Python中的Walrus运算符分析示例详解》Python中的Walrus运算符(:=)是Python3.8引入的一个新特性,允许在表达式中同时赋值和返回值,它的核心作用是减少重复计算,提升代码简... 目录1. 在循环中避免重复计算2. 在条件判断中同时赋值变量3. 在列表推导式或字典推导式中简化逻辑