Webserver, server.onNotFound(handleNotFound);

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Webserver, server.onNotFound(handleNotFound);

Postby mikemoy » Sat Sep 08, 2018 5:40 pm

I am a bit confused on the use of server.onNotFound(handleNotFound);

ok, so it calls the function handleNotFound, but how to i see what the request was ?

bobtidey
Posts: 43
Joined: Mon Jun 18, 2018 2:24 pm

Re: Webserver, server.onNotFound(handleNotFound);

Postby bobtidey » Sat Sep 08, 2018 8:10 pm

The handleBotFound routine can access what it needs from the server object

server.uri() will tell you the request, server.arg("argname") can retrieve any arguments included.

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: Webserver, server.onNotFound(handleNotFound);

Postby mikemoy » Sat Sep 08, 2018 9:03 pm

Thank you!

Who is online

Users browsing this forum: No registered users and 58 guests