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

相关文章

如何解决idea的Module:‘:app‘platform‘android-32‘not found.问题

《如何解决idea的Module:‘:app‘platform‘android-32‘notfound.问题》:本文主要介绍如何解决idea的Module:‘:app‘platform‘andr... 目录idea的Module:‘:app‘pwww.chinasem.cnlatform‘android-32

SQL表间关联查询实例详解

《SQL表间关联查询实例详解》本文主要讲解SQL语句中常用的表间关联查询方式,包括:左连接(leftjoin)、右连接(rightjoin)、全连接(fulljoin)、内连接(innerjoin)、... 目录简介样例准备左外连接右外连接全外连接内连接交叉连接自然连接简介本文主要讲解SQL语句中常用的表

kali linux 无法登录root的问题及解决方法

《kalilinux无法登录root的问题及解决方法》:本文主要介绍kalilinux无法登录root的问题及解决方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,... 目录kali linux 无法登录root1、问题描述1.1、本地登录root1.2、ssh远程登录root2、

SpringBoot应用中出现的Full GC问题的场景与解决

《SpringBoot应用中出现的FullGC问题的场景与解决》这篇文章主要为大家详细介绍了SpringBoot应用中出现的FullGC问题的场景与解决方法,文中的示例代码讲解详细,感兴趣的小伙伴可... 目录Full GC的原理与触发条件原理触发条件对Spring Boot应用的影响示例代码优化建议结论F

MySQL 中查询 VARCHAR 类型 JSON 数据的问题记录

《MySQL中查询VARCHAR类型JSON数据的问题记录》在数据库设计中,有时我们会将JSON数据存储在VARCHAR或TEXT类型字段中,本文将详细介绍如何在MySQL中有效查询存储为V... 目录一、问题背景二、mysql jsON 函数2.1 常用 JSON 函数三、查询示例3.1 基本查询3.2

Python 迭代器和生成器概念及场景分析

《Python迭代器和生成器概念及场景分析》yield是Python中实现惰性计算和协程的核心工具,结合send()、throw()、close()等方法,能够构建高效、灵活的数据流和控制流模型,这... 目录迭代器的介绍自定义迭代器省略的迭代器生产器的介绍yield的普通用法yield的高级用法yidle

Pyserial设置缓冲区大小失败的问题解决

《Pyserial设置缓冲区大小失败的问题解决》本文主要介绍了Pyserial设置缓冲区大小失败的问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面... 目录问题描述原因分析解决方案问题描述使用set_buffer_size()设置缓冲区大小后,buf

resultMap如何处理复杂映射问题

《resultMap如何处理复杂映射问题》:本文主要介绍resultMap如何处理复杂映射问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录resultMap复杂映射问题Ⅰ 多对一查询:学生——老师Ⅱ 一对多查询:老师——学生总结resultMap复杂映射问题

java实现延迟/超时/定时问题

《java实现延迟/超时/定时问题》:本文主要介绍java实现延迟/超时/定时问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Java实现延迟/超时/定时java 每间隔5秒执行一次,一共执行5次然后结束scheduleAtFixedRate 和 schedu

C++ Sort函数使用场景分析

《C++Sort函数使用场景分析》sort函数是algorithm库下的一个函数,sort函数是不稳定的,即大小相同的元素在排序后相对顺序可能发生改变,如果某些场景需要保持相同元素间的相对顺序,可使... 目录C++ Sort函数详解一、sort函数调用的两种方式二、sort函数使用场景三、sort函数排序