D
dianne.evans@danwood.co.u
Guest
Thank you for this - I have managed to get a fair bit further. My next challenge is on the Response side of things. I have a response object as: oRequest = RequestBuilder:Get(ip-uri) :AcceptAll() :Request and then I can pull out the following Properties, which all look good: MESSAGE 'Status: Code/Reason' oResponse:StatusCode oResponse:StatusReason SKIP 'Version:' oResponse:Version SKIP 'Character Encoding:' oResponse:CharacterEncoding SKIP 'Transfer Encoding:' oResponse:TransferEncoding SKIP 'Content Type:' oResponse:ContentType SKIP 'Content Length:' oResponse:ContentLength SKIP 'MD5' STRING(oResponse:ContentMD5) skip view-as alert-box title "oReponse details". However, I seem to be having problems when trying to access the methods for GetHeader and/or GetHeaders. I have tried putting USING OpenEdge.Net.HTTP.HttpHeader. at the top, but that is not understood at all, so I'm unable to define a variable as a HttpHeader (or as an array of) Is oResponse:GetHeaders available to me in 11.5.1 The best documentation I have found is: https://documentation.progress.com/output/oehttpclient/index.html?OpenEdge.Net.HTTP.DefaultRequestBuilder.html If possible, could someone provide a snippet of code to obtain the headers from the HttpResponse object? Many thanks again
Continue reading...
Continue reading...