in reply to Connection refused error

It sounds like you need to go through a proxy. Documentation on how to do this with LWP can be found here

Hope this helps...

gav^