correctly handle and test data and url parameters for post requests.