iTP Active Transaction Pages (iTP ATP) Programmer's Guide
ATP Objects, Properties, and Methods
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide—522292-002
4-10
Methods
•
ATP_HTTP_READ_FAILED(104): Internal socket read failed. The error may
be caused by an AWAITIOX function timeout (errorDetail = 40).
You can check the detail error code either from the errorDetail property defined in
the outstanding ATPException object or the HTTP object.
getResponseHeader
Retrieves the value of an HTTP header field from the response body.
Syntax
strValue = oHTTP.getResponseHeader(name)
Parameters
name – The string value containing the case-insensitive header name.
Return Value
String. Contains the header field value. The results of this method are valid only
after the GET or POST methods have been successfully completed. It returns an
empty string if there is no such header name in the response body.
setRequestHeader
Specifies the name of an HTTP request header field.
Syntax
oHTTP.setRequestHeader(name, value)
Parameters
name – The string containing the case-insensitive header name.
value [optional] – The string value of the header. If this parameter is null or
missing, the request header is reset to an empty string, which then will not be
included in the request.
Return Value
None.
setUserInfo
Specifies the user name and password for authorization. The user and password
information must be set prior to any GET or POST operations. The user and
password are encrypted by the RFC 2617 basic authorization algorithm before being
sent to a server. For security concerns, refer to the RFC 2617 for details.
Syntax
oHTTP.setUserInfo(user, password)