Strange behaviour with web server example, can you help?

I have loaded the webserver example ...

created 18 Dec 2009
by David A. Mellis
modified 9 Apr 2012
by Tom Igoe

I have a Mega2560 and an Ethernet shield with SD slot.

The code compiles and runs but I have to power-cycle before it will load pages in the browser.
Reset dosnt work.

Any ideas?

Do you have a microSD card in the slot?

edit: I had to find the link to the server code I use. This has two form fields on it.

Now that what I call a solution ... THANKS I am most impressed.
Ran first time without incident, I have to admit I haven't checked for compile warnings but there will be plenty of those once I start trying to modify it. ]:slight_smile:

There is a card in the slot but b but I am not including SDLib whilst testing the basic web server.
I have code that populates an LCD from a file on SD and will be attempting to do a similar thing with HTML header files and code.

Since I cant refer to variables by name at run time I have built a case statement that returns formatted values when prompted with a string.
I had wondered about getting handles/pointers when variables are defined and then mapping them to string representations of the design time variable names.
It sounds practical but I wouldn't know where to start. Would you perhaps?

I am afraid I have lofty goals which include file transfer to and from the SD Card preferably via HTML file transfer to avoid having to implement TFTP for example.
I suspect it will take me some time :sweat_smile: