Thank you for your answer pylon, problem with text box was also connected to browsers on my cell phones and PC, which are not the same and arduino interpreted them differently.
I will now be short as possible in my biggest issue, it's about taking value from GET line - example: GET /L2?r=8&g=16&b=32
When I want to add this GET line to the string and print that string with serialprint, controller start to be slow (letter per second in serial monitor) so obviously I did something wrong.
if (currentLine.endsWith("GET /H3")) {
digitalWrite(led3, HIGH); // GET /H3 turns the LED off
}
if (currentLine.endsWith("GET /L3")) {
digitalWrite(led3, LOW); // GET /L3 turns the LED off
}
// Until here everything is fine. For next example I will use only first textbox value.
if (currentLine.indexOf('&')>1) // If textbox is submitted, currentLine: GET /L2?r=8&g=16&b=32
{
String durations = currentLine // Is this possible? To copy that line with GET to the String
// I also tried with first declaring durations empty "" and then adding current line with += but same result
Serial.print (durations);
questposition = durations.indexOf('?');
andposition = durations.indexOf('&');
durationR = durations.substring(questpos+3,andpos-1); //durations is value between = and & that is 8
digitalWrite(led, HIGH); // turns the LED on for durationR
delay(durationR*1000);
digitalWrite(led, LOW);
}