ovidiucp / TinyWebServer

Small web server for Arduino, fits in 10KB ROM, less than 512 bytes RAM
http://www.webweavertech.com/ovidiu/weblog/archives/000484.html
GNU Lesser General Public License v2.1
245 stars 65 forks source link

Parse the query string #12

Open ovidiucp opened 12 years ago

ovidiucp commented 12 years ago

The current code doesn't support parsing the URL query string of a GET request and returning parameter values.

Some problems arise here because the URL GET request can be up to 1024 bytes long, which could easily overflow the available RAM. A technique similar to that used to parse header values could be employed. This way the parameters names that make sense to the application are stored in ROM, and only values for these are stored in RAM and returned to the application.

Hardcore-fs commented 12 years ago

I think it is a 'tinyWebServer' not Apache. There are always going to be 'tradeoffs', the people using this library are going to be coding their own pages, if they seriously need a 1024 bytes long URL then they need to be looking at doing things differently. I'm more worried about response times for uploading files, there seems to be a massive bottle neck in the ethernet library above the I/O handlers.