adding headers for POST; minor change to random data generation for JSON data