On Tue, Aug 04, 2009 at 09:48:51AM +0200, Mikael Hall wrote: > Hello, Peter. > > I've tried this just now, where the first try is without spiffy running and > the second with spiffy running. > " > mik...@mikael-desktop:~$ echo -e "GET http://localhost:8080/ HTTP/1.0\n\n" | > nc -lp 8080 | tee output.txt
I don't understand this commandline. Why are you piping stuff into a netcat server process? > GET / HTTP/1.1 > Host: localhost:8080 > User-Agent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.9.0.12) > Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12 Is this your email client's line wrapping, or is there actually a newline present here? > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > Accept-Language: sv-se,sv;q=0.8,en-us;q=0.5,en;q=0.3 > Accept-Encoding: gzip,deflate > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 > Keep-Alive: 300 > Connection: keep-alive I tried running this into Spiffy (assuming the user-agent line is actually one line), and it gave me a correct (200 OK) reply! > http://localhost:8080/HTTP/1.0\n\n" | nc -lp 8080 | tee output.txt > mik...@mikael-desktop:~$ echo -e "GET http://localhost:8080/ HTTP/1.0\n\n" | > nc -lp 8080 | tee output.txt > Can't grab 0.0.0.0:8080 with bind This just means that spiffy's already listening on port 8080. There can only be one program listening on any given port at the same time. I guess I'm going to have to try running Ubuntu myself to test this. Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth
pgpCCX3b9L36A.pgp
Description: PGP signature
_______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
