support post request with json data
minor changes