Hi CJ,
your question is wrong:
"how do I utilize PB's HTTP/REST Client object to display such file without needing to enter the credentials"
Since there's authentication enabled on the server, the question should be:
"how do I utilize PB's HTTP/REST Client object to display such file AND enter the credentials"
Sorry for joking a bit :-)
However, I assume authentication is HTTP Basic or Form, depending on the response error code 401 or 302 that you get if you do not input user/pwd.
This said, you need to set the HTTP Basic Authorization by encrypting username and password in Base64 following the header format ("username:password")
Something like:
httpclient http
http = create httpclient
ls_header = 'Basic ' + ls_encoded_Base64
http.SetRequestHeader("Authorization", ls_header)
Here below the API of HTTPClient and CoderObject for your reference:
- https://www.appeon.com/support/documents/appeon_online_help/pb2017r3/powerscript_reference/ch10s38.html
- https://www.appeon.com/support/documents/appeon_online_help/pb2017r3/objects_and_controls/ch02s37.html
Best,
.m