Posted by: shree5 January 3, 2006
Login in to Rate this Post:
0
?
बल्ल बल्ल रातभरिमा जेठाजुलाई नि पार लाईयो, thought might be useful to others too!!!
Requesting vbs is,
Option Explicit Const WinHttpRequestOption_EnableRedirects= 6 Dim http, url, strPostData ' Initialize an HTTP request. Set http = CreateObject("WinHttp.WinHttpRequest.5.1") url = "http://www.ice.ucalgary.ca/iceload/online/pull_1.php" strPostData = "basasthan=sajha&kamjati=khattam" With http .Option(WinHttpRequestOption_EnableRedirects) = False .Open "POST", url .setRequestHeader "Content-Type", "application/x-www-form-urlencoded; charset=UTF-8" .Send strPostData End With '# just for debugging... you can take these lines out when you put it in production... Dim s s = http.ResponseText 's=http.GetAllResponseHeaders wscript.echo sThe server php and the result of the execution are, KEEP ROLLING :-)