VBScript & Proxy Support

There are so many incredibly useful DesktopX objects that support web connectivity. Unfortunately, my web access requires a proxy login/password and none of these objects will work.

Does anyone know if VBScript supports proxy authentication or how one might add the functionality to an already existing script?

Thanks in advance.


JPB
3,339 views 8 replies
Reply #2 Top
Anybody have an answer - unfortunately they don't use the browser proxy setting. Which is too bad - stardock central does, but desktopX objects don't.
Reply #3 Top
I think you might be able to make something that does that right now but it will be in VBscripting and not very secure, key word think. your best bet for a good proxy will be to contact stardock and try to convince them to include it.

it might already be included? but I don't know how to make it work if it is.
Reply #4 Top
The one weather object I have is in VB and makes a call to a Microsoft XML object to do the GET, and the MSFT documentation seems to imply that proxy support is inherent in that, and that it would take the browsers setting. The unfortunate part is, it isn't working so it must not be the case .

As for getting the weather, I'm not worried too much about security .
Reply #5 Top
maybe it relies on your proxy setting for either internet explorer, or maybe your default browser. have you set the proxies up in both if you use a browser other than ie.
Reply #6 Top
Ah it turns out to be simpler than that - the code was making a call to check System.InternetConnected and that is failing inside a proxy. This call was added so people writing scripts like this could make sure they didn't give the user script errors when the internet connection wasn't available (such as for dial-up users) and is a good idea. However, whatever check InternetConnected is using doesn't work when you're inside a proxy server. I suspect it makes some direct attempt to either lookup a name (maybe a DNS lookup on www.stardock.com) or some direct sockets connection to a specific web site.

So, if you are inside a firewall and use a proxy server to get to the internet, you can edit the script associated with your weather object to remove the check for InternetConnected and the weather object will work right as long as the library for making HTTP calls from the script supports the browsers built-in proxy setting. The script I had (from the included weather object in OD) made a call to the Microsoft.XmlHttp object at it includes that support. YMMV
Reply #7 Top
ahh. glad you worked that out, maybe somebody will figure a way around that in the vbscript so everybody can use it
Reply #8 Top
Trying to figure out what scottsh meant by editing the script for the weather applet (which crashed my object dock everytime the weather applet decides to check on the weather and I have not authenticated my self to the proxy yet) Are you talking about the .dll that is inside program files/stardock/object dock/docklets/weather?

scottsh if you get to read this did you get this to work good on your end? If you did could you share your edited version of the .dll or edited file to see if it works on my end?

thanks in advance!