Ok, give me the IP address and port of your proxy so that I can give you the complete script in one go.