I have attached a Word document that shows screen shots of the code I used to prefetch a users proxy server and port for use in the Submit to Web action.

14627-Proxy auto detection at startup.zip