HTTP Procedure

PROC HTTP Statement

Invokes a Web service that issues requests.
A Simple POST Request

A POST Through a Proxy

A POST Through a Proxy That Requires Authentication

A POST That Captures the Response Headers

Syntax

PROC HTTP options;

Summary of Optional Arguments

specifies the HTTP content-type to be set in the request headers.
specifies a fileref to a text file that contains one line per request header in the format key:value.
specifies a fileref to a text file to which the response headers are in the format key:value.
specifies a fileref to input data.
specifies the HTTP method.
specifies a fileref where output is written.
specifies an HTTP proxy server host name.
specifies an HTTP proxy server password.
specifies an HTTP proxy server port.
specifies an HTTP proxy server user name.
specifies the endpoint for the HTTP request.
specifies the Web authentication domain.
specifies a password for basic authentication.
specifies a user name for basic authentication.

Optional Arguments

CT
specifies the HTTP content-type to be set in the request headers.
HEADERIN
specifies a fileref to a text file that contains one line per request header in the format key:value.
Operating Environment Information: In the z/OS operating environment, HEADERIN files must be created with a variable record length.
HEADEROUT
specifies a fileref to a text file to which the response headers are in the format key:value.
IN
specifies a fileref to input data.
METHOD
specifies the HTTP method.
OUT
specifies a fileref that indicates where output is written.
PROXYHOST
specifies an HTTP proxy server host name.
PROXYPASSWORD
specifies an HTTP proxy server password.
Tips:The password is required only if your proxy server requires credentials.

Encodings that are produced by PROC PWENCODE are supported.

PROXYPORT
specifies an HTTP proxy server port.
PROXYUSERNAME
specifies an HTTP proxy server user name.
Tip:The user name is required only if your proxy server requires credentials.
URL
specifies the endpoint for the HTTP request.
WEBAUTHDOMAIN
specifies the Web authentication domain. If specified, a user name and password are retrieved from metadata for the specified authentication domain.
WEBPASSWORD
specifies a password for basic authentication.
Tip:Encodings that are produced by PROC PWENCODE are supported.
WEBUSERNAME
specifies a user name for basic authentication.