File: http%40.sh

package info (click to toggle)
ucspi-tcp 0.88-9
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 1,040 kB
  • ctags: 698
  • sloc: ansic: 5,660; makefile: 753; sh: 329
file content (6 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
echo "GET /${2-} HTTP/1.0
Host: ${1-0}:${3-80}
" | HOME/bin/tcpclient -RHl0 -- "${1-0}" "${3-80}" sh -c '
  HOME/bin/addcr >&7
  exec HOME/bin/delcr <&6
' | awk '/^$/ { body=1; next } { if (body) print }'