SetRequestHeaders
PowerScript function
Description
Sets all of the request headers.
Applies to
HTTPClient and RestClient objects
Syntax
|
1 |
objectname.SetRequestHeaders ( headers ) |
|
Argument |
Description |
|---|---|
|
objectname |
The name of the HTTPClient or RestClient object in which |
|
headers |
A string whose value is the information of all of the |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, the method returns null.
Examples
|
1 2 3 4 |
Integer li_rc HttpClient lnv_HttpClient lnv_HttpClient = Create HttpClient li_rc = lnv_HttpClient.SetRequestHeaders("content-type:application/json; charset=UTF-8~r~nCache-Control:no-cache") |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest