in reply to Send message using HTTP to Authenticated
Just use LWP.
google provides this resource for Authentication (Perl & LWP)