How to return a javascript GET request?


In my arduino code, i am using a ethernet shield and i can turn ON and OFF the Arduino Digital Ports, but i want to get the sensor values and put them in my app, using a JavaScrip GET request. How can i proceed?

Thank You

Client or server on the Arduino?