URL Commands with Arduino Webserver?

Hi there, I apologize in advance for the vagueness of the title, I am unsure of how I want to word my question. I have a web server I plan to setup at lets say "192.168.0.1".

I want to have my web server setup so that if the URL entered is "192.168.0.1/turnOn" that it will trigger the digitalWrite(pin, HIGH);

How can I word this in my program to work properly?

THANKS!

edit; I've read about server.on("/url", function());
I also read that inside of the void loop(){} there is a function called server.handleClient();
Are these available on the Arduino Ethernet Board?

Are these available on the Arduino Ethernet Board?

What do you mean by "the Arduino Ethernet Board"? Most Arduinos do not have built in ethernet capabilities.

When a browser is pointed to 192.168.0.1, using a URL like http://192.168.0.1/turnOn, the browser makes a GET request.

The Arduino as server, using the Ethernet library, can read the client request, save it, and when it has received the complete request, it can parse the request to see what the client wanted done.

The WebServer example shows how to read the client request, though it ignores it, and simply spews some irrelevant nonsense. You can do better than that.

PaulS:
When a browser is pointed to 192.168.0.1, using a URL like http://192.168.0.1/turnOn, the browser makes a GET request.

I'll look into GET requests. I appreciate the help. There is an Arduino Ethernet board with built in Ethernet, pins 10,11,12,13 reserved for ethernet it is pretty neat although retired model.