in reply to automating web upload ?
A web search revealed that the script cpan-upload makes use of an LWP::UserAgent to upload files: check the sub pause_add_files.