Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - script to POST and open reponse in new window

Reply
 
Old 06-25-2009   #1 (permalink)
bland


 
 

script to POST and open reponse in new window

I am trying to go from a .vbs file that is a working http POST to server, to
opening a broswer window displaying the return URL. I cannot have the script
in a web page, needs to be a stand-alone file executed, and must be pure
vbscript.

A snippet:

Dim objHttp
Set objHttp= Createobject("MSXML2.ServerXMLHTTP")
objHttp.Open "POST",srvr,false
objHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objHttp.send info

if objHttp.status = 200 then
Dim ws
Set ws = CreateObject("WScript.Shell")
ws.Exec("c:\Program Files\Internet Explorer\iexplore.exe about:Blank")
end if

I also need to ensure I only submit once. Obviously this does not even
attempt it but my baseline to work with. I've tried working with the
argument for iexplore on what is passed in to no avail so far.

Any thoughts or help would be greatly appreciated.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Opening an hidden Window with window.open (HTML) VB Script
DPM pre/post script VB Script
How do I put a saveto name from a reponse object .net .NET General
how to run a script without a window PowerShell
Slow reponse from UNC paths. PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46