Add http auth support to the PUT request