Implements multiple header handling for curl arguments

[#74077516]