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-8
Methods
GET
Sends an HTTP GET request to the HTTP server. You need to specify correct URL
information before calling this method. If the connection has not been opened, this
method calls the OPEN method internally before sending the HTTP request.
Syntax
oHTTP.GET()
Parameters
None
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.
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 from the errorDetail property defined in the
outstanding ATPException object.
POST
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 sending the HTTP request.
Syntax
oHTTP.POST(data)
Parameters
data – The string value to be sent to the HTTP server.
Return Value
None