title: Need help in getting http request in esp8266
body: <p>Hi beautiful community of ESP!</p>
  
  <p>I am trying to send a http request from browser to the esp8266. Currently I have ESP8266WebServer running on the esp and listening to incoming http requests. I have a function which listens to request made by browser and activates a function example: if I type '<a href="http://ipofesp/ledon" rel="nofollow noreferrer">http://ipofesp/ledon</a>' the ledon function will be called upon '/ledon' in the url.</p>
  
  <p>The code I am using is:</p>
  
  <pre><code>#include &lt;ESP8266WebServer.h&gt;
  ESP8266WebServer server;
  
  void setup(){
  
  server.on("/",[](){server.send(200,"text/plain","Hello World");});
  server.on("/ledon",ledon);
  
  server.onNotFound(handleNotFound);
  
  }
  
  void loop() {
  server.handleClient();
  }
  
  void ledon(){
  
  digitalWrite(D5, LOW)
  
  }
  
  void handleNotFound(){
  
  server.send(200,"text/plain","Wrong input");
  
  }
  </code></pre>
  
  <p>This works file for me but now I am trying to send a http request from browser to the esp8266 with an http payload. How can I fetch the http payload in esp8266?</p>
  
  <p>is there any built-in function in the server object?</p>