'LCD ESP8266WiFi access point Send Text

hello i am trying to send data to lcd screen ,but they arrive as GET/ DATO /HTTP 1.1

I ONLY NEED TO ARRIVE DATA AND DELETE (GET/ /HTTP 1.1)

I am used to the esp8266 by wifi in access point mode the program works well

request is the data that arrives at the arduino terminal

  }
 if (request.indexOf("") != -1)  { //////SHIPPING PART
  // enviar
  lcd.init();
   lcd.backlight();
   lcd.setCursor(0,0);
   lcd.print(request);

    delay(1000);
 
   }

Send Text

I just want to send text so this is what I hope to ahieve

SEND DATO

DELETE GET/ /HTTP 1.1

#include <ESP8266WiFi.h>
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>



   
const char *ssid_AP = "LCDAP";
const char *Password_AP = "12345678";

WiFiServer server(80);

LiquidCrystal_I2C lcd(0x27,2,16); 

void setup(){
  lcd.init();                      // initialize the lcd 
  lcd.backlight();
  lcd.setCursor(2,0);
  lcd.print("LCD Ready");
  Serial.begin(115200);
  delay(10);


  delay(1000);
  WiFi.mode(WIFI_AP);
  WiFi.softAP(ssid_AP,Password_AP);

  Serial.println("WiFi conected");
  Serial.println();
  WiFi.printDiag(Serial);
  Serial.print("AP direccion IP: ");
  Serial.println(WiFi.softAPIP());

  // Start the server
  server.begin();
  Serial.println("Server started");
  
  }

void loop() {
  // Check if a client has connected
  WiFiClient client = server.available();
  if (!client) {
    return;
  }
 
  // Wait until the client sends some data
  Serial.println("new client");
  while(!client.available()){
    delay(1);
  }
 
  // Read the first line of the\r %d\n
  String request = client.readStringUntil('\n');
  Serial.println(request);
  client.flush();

 

if (request.indexOf("/LCDBORRAR") != -1)  {
   lcd.clear();
    delay(1000);
 
  }
 if (request.indexOf("") != -1)  { ////// send text
  // enviar
  lcd.init();
   lcd.backlight();
   lcd.setCursor(0,0);
   lcd.print(request);

    delay(1000);
 
   }
 
 
  delay(1);
  Serial.println("Client disonnected");
  Serial.println("");

   }


Solution 1:[1]

req.replace(" HTTP/1.1", ""); // Para quitar HTTP/1.1 req.replace("GET /", ""); // Para quitar GET /

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 VLAD D ELECTRONICS