Hi all,with example on page 1, I've coded a home automation relays with a wemos mini, and configured also remote access by username and password. the problem now is:
by using GET, all works well, but username and password are visible in web page title, while, using POST, the http buffer is truncated and cannot see in header username and password to process them, but, if I configure also:
Astream.WaitForMoreDataDelay = 500
Astream.MaxBufferSize = 512
the I can see complete http POST header
Private Sub Server_NewConnection (NewSocket As WiFiSocket)
Astream.Initialize(NewSocket.Stream, "astream_NewData", "astream_Error")
'configure them only with POST Connections
Astream.WaitForMoreDataDelay = 500
Astream.MaxBufferSize = 512
End Sub
but in this way, when call by webpage the POST, the esp8266 restart, with error (3), and sometime with error (9) or erro (2), there is other way to obtain all header chars, without use:
Astream.WaitForMoreDataDelay = 500
Astream.MaxBufferSize = 512
becouse all seems to work well, but only with GET, cos HTTP buffer header is shorter.
thanks a lot.