my $obj = '{ "login": "testuser@skytel.de", "password": "testing"}' . "\n"; my $dummy = [ 'Content-type' => 'application/json', 'Content-Length' => length($obj) ];