in reply to Forcing Content-Length Value in LWP

we need more info. I guess you POST data to a site. The easiest way is to use HTTP::Request::Common.
use HTTP::Request::Common; my $request = POST "http://somesite/page", [foo => "bar", name => "fre +d"]; print $request->as_string;
Boris