Chat freely about anything...

User avatar
By martinayotte
#40567 WiFiServer is a plain TCP Server, it could be use for any kind of protocol, such Telnet on port 23 or any other port.
If you use it as HTTP Server, it will work, but you will have to handle the protocol by yourself, doing all parsing, etc.

The ESP8266WebServer is a library built on top of WiFiServer, which handle most of the protocol for you, providing easy way to access the GET/POST arguments, preparing headers to send contents, etc.

So, if you don't wish to re-invent the wheel, it is better to use ESP8266WebServer.
User avatar
By futechiot
#79815 [quote="martinayotte"]WiFiServer is a plain TCP Server, it could be use for any kind of protocol, such Telnet on port 23 or any other port.
If you use it as HTTP Server, it will work, but you will have to handle the protocol by yourself, doing all parsing, etc.

The ESP8266WebServer is a library built on top of WiFiServer, which handle most of the protocol for you, providing easy way to access the GET/POST arguments, preparing headers to send contents, etc.

So, if you don't wish to re-invent the wheel, it is better to use ESP8266WebServer.[/quote]


Ok i can see its depends on USE CASE(application)
But still can you tell me more about limitation of each one?

i wanna make one configuration page for WIFI with some sensors data, in this webpage there is also javascript and CSS files that i'm using from SPIFF .
So which one is better
[b]wifiserver.h or esp8266webserver.h ??[/b]

in wifi server.h is it possible to make that big WEBPAGE?
and is it possible to send data from webpage to esp8266 board?


in this webpage first there is login page,then configuration page.