Comununication with web page

Hi i want to create an agent, which will replicate data (files) from web interface, but i have no idea how to connect from lotus over security login page and then download these files. Can you give me some outline how to do it? Thank you. Palo.