Server http get and post, procesing data by parameter