MsgBox(Server.URLEncode("http://www.google.com/"))
I get the following error message:
Error: Object required: 'Server'
Code: 800A01A8
Any ideas as to why and what I might do to fix it?
How are you running this script, are you using WSH (cscript.exe or wscript.exe)?
You need to run this script from an ASP page under IIS.
http://msdn.microsoft.com/library/en-us/iissdk/iis/ref_vbom_sero.asp
I'm running this script as I would any random executable - just
clicking on the *.vbs file.
The reason I need to use URL encode is because I'm trying to send an
HTTP query to a website using the Microsoft.XMLHTTP object, and a
portion of the query will be based off of data the user inputs via
InputBox. This data needs to be URLencoded, and I'd rather not rewrite
a routine that's already in vbscript in some capacity...
Michael Reese
Yup - that's it. Thanks! :D