File: http@.sh

package info (click to toggle)
ucspi-tcp-src 0.88-15
  • links: PTS
  • area: non-free
  • in suites: lenny, squeeze
  • size: 1,380 kB
  • ctags: 761
  • sloc: ansic: 6,758; makefile: 854; sh: 312
file content (6 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (8)
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 }'