[BusyBox] nc: Problems reaching some servers

Charles Steinkuehler charles at steinkuehler.net
Thu Feb 20 14:06:04 UTC 2003


Calle Be wrote:
> Oki, thanx!
> 
> So, can the <CR><LF> problem be solved? How can I send a <CR> instead of a
> <LF>? And the other reply was that busybox nc only supports udp. Is there a way
> around that?

There are *MANY* ways to solve your <CR><LF> problem, and don't listen 
the the comment about nc supporting udp (where in the world would anyone 
get that idea?)...tcp works just fine.  An example below, using echo to 
form the http request (on my Dachstein LEAF firewall):

# busybox
BusyBox v0.60.1 (2001.10.18-21:35+0000) multi-call binary

<snip>

# echo -ne "GET / HTTP/1.0\r\n\r\n" | busybox nc \ 
komfram.trafikkontoret.goteborg.se 80
HTTP/1.1 200 OK
Date: Thu, 20 Feb 2003 21:00:46 GMT
Server: Apache/1.3.27 (Unix)  (Red-Hat/Linux)
Last-Modified: Wed, 19 Feb 2003 13:11:18 GMT
ETag: "4b534-a8e-3e538276"
Accept-Ranges: bytes
Content-Length: 2702
Connection: close
Content-Type: text/html

<html>
<snip>
</html>

tempest: -root-
#

-- 
Charles Steinkuehler
charles at steinkuehler.net





More information about the busybox mailing list