use HTTP::Headers; my $header = HTTP::Headers->new( Proxy_Authorization => 'Basic SSdtIG5vdCB0aGF0IHN0dXBpZC4uLiA6KQ==' );