Make post and get requests use the same interface