im trying to login to a account on the web to chek how much space has been used for my email account

i have the basic idea of sockets, written a few scripts usin sockets, but never had to login to a website an goto a certain page after logged in.

any help would make me happy