论坛: 编程破解 标题: HTTP通讯协议 复制本贴地址    
作者: programlive [coolcall]    论坛用户   登录
谁有详细的说明吗?
比如:GET
      POST
传送帐户命令,谢谢呀

地主 发表时间: 04-06-23 13:58

回复: 286 [unique]   版主   登录
1. HTTP消息头
General Headers:用于请求或响应中
Request Headers:用于HTTP请求
Response Headers:用于HTTP响应
Entity Headers:用于正被发送或接收的实体
消息头提供有关客户端发送请求、请求本身以及消息的有效负荷方面的元信息。
1.1请求消息头
GET / HTTP/1.1    :GET表明GET方法,/表示请求的资源为默认资源
Accept: image/gif,*/*  :客户端指明它接收几个MIME类型的文件。
Accept-language: en-us
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01;Windows NT) :表明客户端类型
Host: localhost:8080 :连接的主机
Connection: Keep-Alive : 表明使用单个TCP/IP连接代替为每个请求的资源建立一个新的连接
1.2 请求方法
GET
POST :使用Content-Type消息头指定消息体中数据的类型;使用Content-Length指定消息体中数据的长度
1.3 响应消息头
HTTP 200 OK  :指明一个成功的响应
Content-Type: text/html :内容类型
Content-Length:25  :指明消息体包含数据的长度,不包含消息头的尺寸。

<html>
<body>
</body>
</html>

2. 状态码

B1层 发表时间: 04-06-23 17:36

回复: programlive [coolcall]   论坛用户   登录
?POST /boss_login.php?from_url=/querycustinfo.php HTTP/1.1?POST /boss_login.php?from_url=/querycustinfo.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
Referer: http://211.XXX.XXX.XXX/boss_login.php?from_url=/querycustinfo.php
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Host: 211.XXX.XXX.XXX
Content-Length: 64
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=3535b537d2e2151f4c2cce81a6179516

msMsisdn=6609&msPassword=123123&sSubmitFlag=1&x=14&y=12
为什么我发送上面的数据包,密码对的时侯它没有把登陆页面发过来?(难道还有其他验证?)
只能在密码错的时候才发过来提示。

B2层 发表时间: 04-06-24 17:32

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号