P
Peter Judge
Guest
There's also the ABL http client that you can use. It's quite easy to use (the main trick is knowng how to process the Entity property which contains the response body). For example: using OpenEdge.Net.HTTP.IHttpRequest. using OpenEdge.Net.HTTP.RequestBuilder. using OpenEdge.Net.HTTP.IHttpResponse. using OpenEdge.Net.HTTP.IHttpClient. using OpenEdge.Net.HTTP.ClientBuilder. using OpenEdge.Net.HTTP.Credentials. def var oReq as IHttpRequest. def var oResp as IHttpResponse. def var oClient as IHttpClient. oReq = RequestBuilder: Get ( ' devlinux12:2412/.../get_field.p ) : Request . oReq = RequestBuilder: Get ( ' localhost:8820/.../applications' ) :UsingBasicAuthentication( new Credentials( 'admin' , 'tomcat' , 'tomcat' )) : Request . oReq = RequestBuilder: Get ( ' devlinux12:2409/.../workshop' ) : Request . oClient = ClientBuilder:Build():Client. oResp = oClient: Execute (oReq). message oResp:ContentType skip oResp:ContentLength skip ( 2 ) oResp:Entity:ToString() view-as alert-box . There's also API doc at https://documentation.progress.com/output/oehttpclient/ and some other examples on these fora.
Continue reading...
Continue reading...