httpreq working for post and get with params