Mechanize wants to send something like this:
Wants to send or actually did send. What's in the HTTP::Request isn't what gets sent. You need to listen to the wire to see what's actually set. You didn't specify what version of LWP you are using, but the latest one claims to use HTTP/1.1 by default (which will use the Host header as in your second snippet).
In reply to Re: Changing WWW::Mechanize Request to obey ModSecurity rules
by ikegami
in thread Changing WWW::Mechanize Request to obey ModSecurity rules
by pdc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |