Performing a GET request

hi everyone

I'm very new to the whole DIY scene- I just got my Uno board a couple of hours ago, so forgive any newbieness :slight_smile:

My goal is to perform a GET request each time my doorbell is rang.
I already hooked up the doorbell itself to the board, and I detect when it was rang using a simple analogRead.
currently what I do is just "println"- but I want to make a GET request to a remote file.

what are my options? is there no other way than to buy the Ethernet shield?
can I run a batch file (I'm on Windows 7) from Arduino? or maybe even open a browser?

Thanks!
Evyatar

is there no other way than to buy the Ethernet shield?

There are options, though this is the best solution.

can I run a batch file (I'm on Windows 7) from Arduino?

There is a library called GoBetweeno that you might search for, and make it execute a batch file. That batch file would need to connect to the serial port to return any data, though, and GoBetweeno will have the serial port tied up.

or maybe even open a browser?

Also possible, using GoBetweeno. However, you won't be able to get any data from the browser.

You could write your own application that runs all the time on the PC, that monitors the serial port, gets data from the Arduino ("Hey, slowpoke, GET me some data from www.xxx.com"), performs the request, and returns some data to the Arduino.

This would require that the application be started when the Arduino was connected, and that the application selected the right serial port and speed, that the application be capable of performing the GET request, and that the Arduino be connected to the PC at all times.

thanks for the reply, I might've needed to add that I don't care about the return value of the request :slight_smile:
I only need to send-and-forget. does this simplify it in any way?
sounds like GoBetweeno would be the easiest solution for me, right?

I only need to send-and-forget.

Using a GET? Sounds more like a POST to me.

POST is probably the "right" method, however the request itself only contains a single int value, so it doesn't really matter.
if a POST request is easier then it's cool, I was just looking for the easiest method.

Unless you have a lot of data, a get request is probably the easiest. As previously mentioned, you will need an application on your pc monitoring the serial port on your computer for input from tha arduino, then that application has to send the get request. The request could be sent by executing a batch file or vbscript.