in reply to Need LWP::UserAgent --header help

Back in the day, I wrote HTTP::Request::FromTemplate for that, but I mostly found it easier to replicate the request using plain Perl code setting the headers instead of maintaining a template for the request. But maybe the approach works better for you than it does for me.