On 9/23/15 8:16 PM, gregrwm wrote:
> this is totally a headscratcher for me.  my browser fetches and 
> displays the expected and reasonable pages for google.com 
> <http://google.com>, www.kfai.org <http://www.kfai.org>, and 
> yermande.org <http://yermande.org>. and the first command below seems 
> to successfully fetch google.com <http://google.com>'s root page.  
> however the second and third commands below get surprising results 
> from www.kfai.org <http://www.kfai.org> and yermande.org 
> <http://yermande.org>. any ideas what's happening?
>
> >$ exec 3<>  /dev/tcp/google.com/80;echo <http://google.com/80;echo> 
> "GET /">&3;while read -r r;do echo $r;done<&3|head -5
...

Why not use curl or wget?

If you want to use bash this way, try wireshark/tcpdump to see exactly 
what's going down the wire.

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20150923/842eef4d/attachment.html>