getting http method and post data