difference between a browser post vs curl post
Posted: Mon May 18, 2015 1:40 am
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
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