Post your best Lua script examples here

User avatar
By Chris-2016
#47575 Hello,

The post from #6081 By jankop - Thu Jan 01, 2015 3:28 pm makes sense if I run the web site from with my local network:

POST / HTTP/1.1
Host: 192.168.5.1
Connection: keep-alive
Content-Length: 7
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://192.168.5.1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG SM-G900P Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://192.168.5.1/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
x-wap-profile: http://device.sprintpcs.com/Samsung/SM- ... NT/PCA.rdf

pwmi=60


However, if I try this from my public IP address (through the internet) with port forwarding from my router to my ESP, then the POST data does not come in or is listed with the ESPlorer as it then drops the pwmi=60

Any ideas and how to make this work???? See the code form early post, #6081 By jankop - Thu Jan 01, 2015 3:28 pm