Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 1: for TokenRequest objects – PB Docs 2019 – PowerBuilder Library

Syntax 1: for TokenRequest objects – PB Docs 2019

Syntax 1: for TokenRequest objects

Description

Sets the request header. If SetHeader or SetHeaders is not used to
set the header for Authorization, the program will automatically set the
header for Authorization and Content-type.

Applies to

TokenRequest objects

Syntax

Argument

Description

objectname

A reference to the TokenRequest object in which you want
to set the request header.

headerName

A string specifying the header name.

headerValue

A string specifying the header value.

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

The following example shows the use of the SetHeader function to
set the value of the content-type header to
“application/x-www-form-urlencoded”:

See also

AppendParam

ClearHeaders

GetHeader

GetHeaders

SetHeaders


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x