Had to use add_headers() to get right content type for POST request