iTP Active Transaction Pages (iTP ATP) Programmer's Guide

ATP Objects, Properties, and Methods
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
4-9
Methods
ATPException
The possible error codes are:
ATP_HTTP_INVALID_URL(2): The host name is not initialized properly.
ATP_HTTP_CREATE_FAILED(101): Internal socket error. Cannot create a
new socket.
ATP_HTTP_CONNECT_FAILED(102): Server is not available or the host
name or address is invalid.
ATP_HTTP_HEADER_TOO_LONG(202): The request header reached the
maximum size limit (16K bytes).
ATP_HTTP_SEND_FAILED(103): Internal socket write failed.
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.
postBinary
Sends an HTTP POST request to the HTTP server. You need to specify correct URL
information before calling this method. If the connection is not opened, this method
calls the OPEN method internally before it sends the HTTP request.
Syntax
oHTTP.POST(data)
Parameters
data – The string value to be sent to the HTTP server. The data is converted to a
UTF-16 string before it is sent to the server.
Return Value
None
ATPException
The possible error codes are:
ATP_HTTP_INVALID_URL(2): The host name is not initialized properly.
ATP_HTTP_CREATE_FAILED(101): Internal socket error. Cannot create a
new socket.
ATP_HTTP_CONNECT_FAILED(102): Server is not available or the host
name or address is invalid.
ATP_HTTP_HEADER_TOO_LONG(202): The request header reached the
maximum size limit (16K bytes).
ATP_HTTP_SEND_FAILED(103): Internal socket write failed.