Salesforce

How to use Basic Authentication with HTTP client ?

« Go Back

Information

 
TitleHow to use Basic Authentication with HTTP client ?
URL NameHow-to-use-Basic-Authentication-with-HTTP-client
Article Number000180355
EnvironmentProduct: OpenEdge
Version: 11.6.x
OS: All supported platforms
Other: OpenEdge.Net.pl, HTTP client
Question/Problem Description
How to use Basic Authentication when using the OpenEdge.Net.HTTP client ?
How to make sure HTTP requests made from ABL include "Authorization:" header ?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
This is done by creating a Credentials object and adding that to the Request, using code similar to:
creds = new Credentials('<domain>', '<user name>', '<password>').

req = RequestBuilder:Get('<URI>')
        // Add credentials to the request
        :UsingBasicAuthentication(creds)
        :Request.

For more detailed code examples, refer to https://github.com/PeterJudge-PSC/http_samples/tree/master/http_client/http_authentication
Workaround
Notes
References to Other Documentation:

Progress Article(s):
 Is there an HTTP client for OpenEdge?
 OpenEdge.Net.pl is missing from PROPATH
​​​​​​
Keyword Phrase
Last Modified Date11/20/2020 7:01 AM

Powered by