网络上xml是什么意思
linux上运⾏telnet发xml报⽂,linux中⽤telnet如何构造get、
pos。。。
构造报⽂的⽅法应该很多,telnet、pyhon脚本、写代码,应该都⾏,但个⼈感觉telnet还是最简单的,哈哈!
在命令⾏下输⼊telnet  172.18.1.179 80
然后输⼊如下的报⽂头,直接回车发送即可
(如果没有telnet客户端,可以直接 apt-get install telnet-ssl 安装⼀个客户端⼯具 就可以了)
例1:
GET /index.html HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/msword, application/vnd.ms-powerpoint, application/vnd.ms-excel, */*
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.2)
Accept-Encoding: gzip, deflate
Cookie: hidden=value; TestCookie=WAF_Cookie_Test; phpbot=hijklmn123; phpsessid=abcdefg
Host: 172.18.1.179
Connection: Keep-Alive
例2:
POST /index.html HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/msword, application/vnd.ms-powerpoint, application/vnd.ms-excel, */*
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; I
nfoPath.2)
Accept-Encoding: gzip, deflate
Host: 172.18.1.179
Content-Length:20
Connection: Keep-Alive
Cache-Control: no-cache
fname=0123456789012345678&lname=aa
报⽂的内容也可以通过抓包⼯具获取⽐如http watch

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。