In case you are wondering the form post data is not being processed by server side in Flask framework, then you are definitely in the right place. Sadly, its very subtle in the flask documentation and I wasted considerable amount of time for such a trivial issue.
Server side Flask Code is :
Simple form submission was giving me 400 Bad request and much to my chagrin, I see a simple curl call giving me the desired result .. . .
So what went wrong ? apparently I had forgotten to set input name for my form elements and Flask uses input name instead of id which I feel is kinda weird.. anyways.. that solved the problem for me. Hope fully no more surprises in flask.
Its 2:16 am in the morning and thanks to ExpressJS to keep me awake for such a long time. So what went wrong ? I happen to install ExpressJS version 3.X and boom! and most of my code breaks.. awesome. Like, the amount of espresso I had dint suffice so ExpressJs wanted to challenge me further. Thank you guys.... x-(
Backwards compatability is something I seek the most and thanks to you ExpressJS guys to spectaculary break that and the newer website design sucks! for love of god, its not a lingerie site. Please keep it as simple as possible. There are cogent reasons why simple text still rules (content ? duh ...) .
Anyways I application I wanted to build was just simple POST/GET handlers with a few things. But with basic support for route handling etc. So I again scouted for frameworks and finally found something simple to use (hapijs yay ..!) . But here is the problem . I need to keep digging through their github repo all the time to see the function calls and parameters they have choosen to implement them WTf!
Static file handling is something trivial and again for love of god guys please document it properly else it gets really hard to use it. This is the following code
And thats how you use the handler json for directory and file. Seems trivial now ... :)