setAuth
Specify authentication via token (also called Bearer authentication) or via user and password.
Format 1
Format 2
void setAuth( user, password ) |
Syntax rules
1. tok is an alphanumeric data item that contains token authentication.
2. user is an alphanumeric data item that contains user name for the authentication.
3. password is an alphanumeric data item that contains user name for the authentication.
General rules
Example
Specify user and password to authenticate at the next request:
... configuration section. repository. class http-client as "com.iscobol.rts.HTTPClient" ... working-storage section. 77 http object reference http-client. ... procedure division. ... http:>setAuth("user1", "secret"). ... |