随笔分类 - Network
摘要:# This is a sample Python script. import psutil import platform import math # Press Shift+F10 to execute it or replace it with your code. # Press Doub
阅读全文
摘要:HTTP首部分为:通用首部、请求首部、响应首部、实体首部、扩展首部。 通用首部常用的: Connection:允许客户端和服务器指定与连接和响应连接信息。 Date: 提供日期。 MIME-Version: 发送端使用MIME版本。 Transfer-Encoding:服务器编码传输方式。 Upda
阅读全文
摘要:http报文组成,http采用C/S网络模式,客户端发送请求报文,服务器发送响应请求报文。 比如,请求报文: GET /test/index.html HTTP/1.1 CLRF 请求行 Accept: text/* CLRF 请求头 Host:localhost CLRF 响应报文: HTTP/1
阅读全文
摘要:1. 命令 netstat -ano | findstr "端口号", 获取进程PID 2. 命令 tasklist | findstr "PID", 获取进程信息
阅读全文