Quantcast
Channel: Net Express / Server Express - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 375

WinHTTP API

$
0
0

Hi,

 

Been experimenting with WinHTTP (windows API) with the following codes;

object section.
class-control.
  WinHTTP is class "$OLE$WinHttp.WinHttpRequest.5.1".

   :
   :

invoke WinHTTP "new" returning ws-winhttp
move "www.mysite.com/mypagCall.asp?qFunc=review
    "&qString=THIS%20%IS%20%A%20%TEST"

  to ws-URLString
*>
*>BELOW CODE PART I'M NOT SO SURE
invoke ws-winhttp "Open"
    using z"POST"
ws-URLString
invoke ws-winhttp "Send"
invoke ws-winhttp "getResponseText" returning ws-String


From the URL, I'm passing two values, the qFunc and qStringto a classic ASP page and so far it is working. 

Question is: What I am after though is "how WinHTTP" could request to a classic ASP page with values.... AND how should (ws-String) it returns a value coming back from a Cobol program?

Tried using SOAP but Microsoft Windows Server 2012 R2 did not migrate the SOAP functionality since Windows Server 2003. Or did they (using the SOAP toolkit)? Could you please help me with this scenario and probably throw a sample code if any. Thanks.


Viewing all articles
Browse latest Browse all 375

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>