Pretty much any language will do. You can read up on things like sockets and HTTP or just use one of the available libraries for your desired language.
I read on a different thread that using the GET request to send the cookie is not correct. I have looked everywhere and cannot find a different way to send a cookie.