logo elektroda
logo elektroda
X
logo elektroda

ESP8266 - How to send a request to the server and receive HTML code?

BARVX 930 7
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16821254
    BARVX
    Level 6  
    Has anyone managed using the esp8266 so that they send a request to the server and get the HTML code of the page in response.
  • ADVERTISEMENT
  • #2 16821573
    donlucka2
    Level 12  
    Can you describe more clearly?
    I do not really understand.
  • ADVERTISEMENT
  • #3 16823392
    BARVX
    Level 6  
    What I mean is: how do I send a request so that I can see the html code of the page on the terminal (uart communication).
  • ADVERTISEMENT
  • #4 16823964
    Anonymous
    Anonymous  
  • ADVERTISEMENT
  • #5 16825803
    BARVX
    Level 6  
    +IPD,0,427:GET / HTTP/1.1
    Host: 192.168.0.15
    Connection: keep-alive
    Cache-Control: max-age=0
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
    Upgrade-Insecure-Requests: 1
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
    Accept-Encoding: gzip, deflate
    Accept-Language: pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7

    I got something like this, but I don't know how to make a query out of it.
  • #6 16825951
    Anonymous
    Anonymous  
  • #7 16826027
    BARVX
    Level 6  
    Well, yes, but you still have to indicate the ip number of the site, because how should it see which server to send the request to.
  • #8 16826042
    Anonymous
    Anonymous  
ADVERTISEMENT