Set headers and data field for request