Arduino Ethernet Shield - Getting querystring data

Hi everyone,

I'm currently working on a simple gas metering project and I'd like to be able to pass some values to my Arduino board (using the Ethernet Shield). For example, http://10.2.1.2/?value=12345.

Now, following the sample code available, I have been able to adapt the Arduino to send text/xml instead of text/html and adjust the output accordingly. But I'm not too sure how I'd also process Querystring parameters, extract the values and assign them to local variables within my program on the Arduino board.

I've done some googling and can't seem to come up with much.

Could anyone lend a hand or point me in the right direction?

Thanks very much

Richard.

An HTTP query will result in data somewhat like this being available:

GET /?foo=7&bar=9 HTTP 1.1

So basically you need to parse the data to extract the items in which you are interested.

The code here might have something useful in it for you but it's not release-worthy.

Someone else posted a web framework library (webduino?) on the forums recently, you might want to search for it.

--Phil.

Hi Follower,

Thanks for your reply. The Webduino library turned out to be exactly what I needed; after a bit of playing around I was able to adapt the examples provided to get just the right result.

Thanks! ;)

Rich