Helpers for sending HTTP requests with JSON and XML content