无curl发起http请求

无curl发起http请求

#!/bin/bash

exec 3<>/dev/tcp/baidu.com/80
echo -ne "GET / HTTP/1.1\r\nHost: baidu.com\r\nConnection: close\r\n\r\n" >&3
cat <&3
exec 3<&-
posted @ 2024-10-07 14:46  一年`  阅读(5)  评论(0编辑  收藏  举报