Best way to assign value to lot of variables
The WebServer class supports argument lookup by name. This should allow HTTP argument parsing that does not require length and/or specific order:

192.168.1.101/testpost?brightness=100&amp;randomOrder=true&amp;delay=1800&amp;position=125


And parse with:

brightness = server.arg("brightness").toInt();
randomOrder = server.arg("randomOrder").toInt();
Delay = server.arg("delay").toInt();
Position = server.arg("position").toInt();


Please note that some value will require cast (and there might be a need for special handling of "true" and "false"). For further robustness each argument name needs to be checked that it is available. 

String arg = server.arg("argName");
val = (arg.length() == 0 ? defaultVal : arg.toInt());


Or simply:

String arg = server.arg("argName");
if (arg.length() != 0) val = arg.toInt();


Cheers!