LWP::Protocol::PSGI turned out to be a bust, so some more reading of of LWP::Protocol::http and LWP::Protocol::https revealed Net::HTTP::Methods::format_request
#!/usr/bin/perl -- use strict; use warnings; use LWP; sub LWP::Protocol::http::SocketMethods::format_request { package LWP::Protocol::http::SocketMethods; my( $socket, $method, $fullpath, @h ) = @_; my $req_buf = $socket->Net::HTTP::Methods::format_request($method, + $fullpath, @h); Data::Dump::dd( $req_buf ); return $req_buf; } LWP::UserAgent->new->get( q{http://example.com/} )->dump; __END__ "GET / HTTP/1.1\r\nTE: deflate,gzip;q=0.3\r\nConnection: TE, close\r\n +Host: example.com\r\nUser-Agent: libwww-perl/6.05\r\n\r\n" HTTP/1.1 200 OK Cache-Control: max-age=604800 Connection: close Date: Sat, 24 May 2014 19:06:51 GMT Accept-Ranges: bytes ETag: "359670651" Server: ECS (sjc/4FCE) Content-Length: 1270 Content-Type: text/html Expires: Sat, 31 May 2014 19:06:51 GMT Last-Modified: Fri, 09 Aug 2013 23:54:35 GMT Client-Date: Sat, 24 May 2014 19:13:24 GMT Client-Peer: 93.184.216.119:80 Client-Response-Num: 1 Title: Example Domain X-Cache: HIT X-Ec-Custom-Error: 1 X-Meta-Charset: utf-8 X-Meta-Viewport: width=device-width, initial-scale=1 ...

In reply to Re: LWP is there any way to get "real" outgoing headers? by Anonymous Monk
in thread LWP is there any way to get "real" outgoing headers? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.