Input class: change behavior of get_post() method, add post_get() method

followup to PR #2522