用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
telnet模拟get,post请求 1、cmd下输入telnet 127.0.0.1 80   回车  不可用的话 打开控制面板---程序和功能---打开或关闭windows功能  然后勾选telnet客户端 2、按下Ctrl+\]  再次按下回车打开回显功能(否侧输入的文字看不见)然后一定要再按下回车 3、 模拟get请求 输入GET /project/http/test.php HTTP/1.1回车 再输入HOST:localhost 回车 最后回车空一格;就会返回下面的内容 GET /project/http/test.php HTTP/1.1 HOST:localhost HTTP/1.1 200 OK Date: Mon, 05 Mar 2018 16:27:08 GMT Server: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.9 X-Powered-By: PHP/7.0.9 Content-Length: 4 Content-Type: text/html; charset=UTF-8 demo       这是返回的project/http/test.php 的数据 模拟post: POST /project/http/test.php HTTP/1.1 HOST:localhost Content-type:application/x-www-form-urlencoded content-length:20 回车空一行 然后输入请求的信息act=query&name=ghost        (act=query&name=ghost为20字节上面的content-length要与发送的post数据大小一致,否则输入不完全就会返回) 返回: act=query&name=ghostHTTP/1.1 200 OK Date: Mon, 05 Mar 2018 16:43:42 GMT Server: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.9 X-Powered-By: PHP/7.0.9 Content-Length: 4 Content-Type: text/html; charset=UTF-8 demo