The use of the ESP8266 in the world of IoT

User avatar
By joefly888
#17720 Hi I came across a weird result.

I have an if/else in my node server checking for the passing of parameters. If I do a curl to the http://192.168.1.100:8000 and http://192.168.1.100:8000/?name=xxx the program acts correctly. But if I enter both of the url in the broswer, it seems to hit both if and else statement. or is it hitting the server twice when I use the browser.

Just curious if this in normal of doing POST or GET from browser.

Thanks
User avatar
By Leo.J
#17896 giving my first post to you :D

i'm new here, and i could be wrong, so dont blame me.

from what i know, the browser sends the "user agent", but i dont believe that affects the result, but maybe re-transmission caused this problem? do you always see the request hitting esp8266 twice?