capture hostname in the Task headers
preserve hostname in the header if it was passed in