#!/usr/bin/env bash
exec 3<>/dev/tcp/ysap.daveeddy.com/80
lines=(
'GET / HTTP/1.1'
'Host: baidu.com'
'Connection: close'
''
)
printf '%s\r\n' "${lines[@]}" >&3
while read -r data <&3; do
echo "got server data: $data"
done
exec 3>&-
约 54 字
预计阅读 1 分钟
bash无curl wget 出网
2025-11-16
bash无curl wget 出网
https://boke.page/posts/bash%E6%97%A0curl-wget-%E5%87%BA%E7%BD%91/