An utility method to test form-style post requests