Ethernet fails with lighttpd server.

I've run the sample WebClient software on Apache and thttpd with excellent success, however when attempting to access a lighttpd daemon, it doesn't work. I brought up the daemon on two different systems and wget, perl curl, Firefox and Opera all like the page just fine. I did a tcpdump on both the lighttpd and thttpd ports. Unfortunately I don't know what I'm looking at.

Once in a great while, it will connect, but normally it just sits there until the connection times out. I get the "connected" message, but apparently no data is forthcoming.

Here's a zip file with the program and the two dumps, if anyone can help me.

Note the program in the zip file has the original port/ip. All I did was change the ip and port numbers to something else.

Thanks, Jim.


Had the same problem, all other servers i tried did work but not lighttpd. However, got it working by replacing:

client.println("GET / HTTP/1.0"); client.println();


client.print("GET / HTTP/1.0\r\n"); client.print("\r\n");

I dont see a big difference in these lines but the second one works...

Great, thanks. I'll keep that in mind. Since I had the option, I trashed lighttpd and install minihttp instead, but I may encounter it again.