I
ivanmorgan
Guest
I'm working with HTTP Client feature for Progress OpenEdge. Basic calls without any security work just fine. I need to make the calls with security tokens. I've never done this before.
Can anyone help me with how to setup the iHttpRequest object with the security token.
`USING OpenEdge.Net.HTTP.IHttpRequest.
USING OpenEdge.Net.HTTP.IHttpResponse.
USING OpenEdge.Net.HTTP.ClientBuilder.
USING OpenEdge.Net.HTTP.RequestBuilder.
DEFINE VARIABLE oRequest AS IHttpRequest NO-UNDO.
DEFINE VARIABLE oResponse AS IHttpResponse NO-UNDO.
oRequest = RequestBuilder:GET( "https://xyz" ) :REQUEST.
oResponse = ClientBuilder:Build() :Client :Execute(oRequest).`
Continue reading...
Can anyone help me with how to setup the iHttpRequest object with the security token.
`USING OpenEdge.Net.HTTP.IHttpRequest.
USING OpenEdge.Net.HTTP.IHttpResponse.
USING OpenEdge.Net.HTTP.ClientBuilder.
USING OpenEdge.Net.HTTP.RequestBuilder.
DEFINE VARIABLE oRequest AS IHttpRequest NO-UNDO.
DEFINE VARIABLE oResponse AS IHttpResponse NO-UNDO.
oRequest = RequestBuilder:GET( "https://xyz" ) :REQUEST.
oResponse = ClientBuilder:Build() :Client :Execute(oRequest).`
Continue reading...