lwp-request -m PUT -c 'text/xml' -se 'http://localhost/cgi-bin/api.pl' < test.xml