in reply to How do I POST info to a server?
Have a look at the LWP bundle -- especially LWP::UserAgent. It contains a credentials() method which will allow you to set a username and password.