51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1878|回复: 1
打印 上一主题 下一主题

[求助] 怎么根据http的消息制作脚本,急救啊

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-12-11 17:32:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
POST /PORTAL/dsm/userLogin HTTP/1.1

Content-Length: 115

Content-Type: text/plain; charset=UTF-8

Host: 221.226.48.164:33400

Connection: Keep-Alive

User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)

Expect: 100-Continue



HTTP/1.1 100 Continue



{"serviceToken":"1","mac":"BC7670AD756D","model":"EC6108V1","IP":"172.17.185.122","area":"China","osVersion":"2.2"}HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

Set-Cookie: JSESSIONID=0B79300E3FCC77C5874A38982563D895; Path=/PORTAL

Content-Type: text/xml;charset=UTF-8

Transfer-Encoding: chunked

Date: Tue, 11 Dec 2012 07:20:07 GMT



6f

{"sessionId":"0B79300E3FCC77C5874A38982563D895","code":0,"serviceUrl":"http://221.226.48.164:33400/PORTAL/dsm"}

0
这是请求消息


POST /PORTAL/dsm/userLogin HTTP/1.1

Content-Length: 115

Content-Type: text/plain; charset=UTF-8

Host: 221.226.48.164:33400

Connection: Keep-Alive

User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)

Expect: 100-Continue



HTTP/1.1 100 Continue



{"serviceToken":"1","mac":"BC7670AD756D","model":"EC6108V1","IP":"172.17.185.122","area":"China","osVersion":"2.2"}HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

Set-Cookie: JSESSIONID=0B79300E3FCC77C5874A38982563D895; Path=/PORTAL

Content-Type: text/xml;charset=UTF-8

Transfer-Encoding: chunked

Date: Tue, 11 Dec 2012 07:20:07 GMT



6f

{"sessionId":"0B79300E3FCC77C5874A38982563D895","code":0,"serviceUrl":"http://221.226.48.164:33400/PORTAL/dsm"}

0



这是响应消息
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2012-12-12 14:46:37 | 只看该作者
应该比较两次请求,看请求相同的部分和不同的部分,然后用web_custom_request
不知对不对。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-9 03:55 , Processed in 0.068981 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表