added data and header fields to POST request