Thanks for your comments, I know, while writing this thing I suddenly realised that in the way I was doing it I'd have to declare those vars statically.
3. The next step could be to implement a standard known proxy protocol so that this could be used with a browser or FTP client.
My intention was (and still is) to eventually develop a IM program that works like msn, this is esentially the same thing (sort off). Although that would require serious adaptations cause it'll require multithreading.