IBMStreams com.ibm.streamsx.inet Toolkit > com.ibm.streamsx.inet 2.9.6 > com.ibm.streamsx.inet.http > HTTPRequest
An HTTP GET request is made. If parameter requestAttributesAsUrlArguments is true, all request attributes are converted to URL query parameters. If parameter requestUrlArgumentsAttribute is specified and this attribute is not empty, this attribute is copied as URL argument string and overwrites all other arguments.
An HTTP POST request is made, any request attributes are set as the body of the request message if parameter requestBodyAttribute is not present or the value of the attribute is empty. The encoding of the request body takes the content type into account. If content type is application/json, a json body is generated from request attributes. If content type is application/x-www-form-urlencoded, a url-encoded body is generated from request attributes. For all other content types, the content of all request attributes is concatenated into the message body. If requestBodyAttribute attribute is not empty, the body of the request is copied from this attribute instead.
An HTTP PUT request is made, the body of the request message is copied from requestBodyAttribute attribute.
An HTTP PATCH request is made, the body of the request message is copied from requestBodyAttribute attribute.
No message body is generated.
An HTTP HEAD request is made.
No message body is generated.
No message body is generated.
No http request is generated but an output tuple is submitted if the output port is present and attributes are passed from input port to output port.
The operator supports the following authentication methods: Basic, Digest, OAuth1a and OAuth2.0; see parameter authenticationType.
This operator cannot be used inside a consistent region.
Optional: authenticationFile, authenticationProperties, authenticationType, connectionTimeout, contentType, disableAutomaticRetries, disableContentCompression, disableRedirectHandling, errorDiagnostics, extraHeaders, fixedContentType, fixedMethod, fixedUrl, method, outputBody, outputBodyRaw, outputCharSet, outputContentEncoding, outputContentType, outputDataLine, outputHeader, outputStatus, outputStatusCode, proxy, proxyPort, redirectStrategy, requestAttributes, requestAttributesAsUrlArguments, requestBodyAttribute, requestUrlArgumentsAttribute, sslAcceptAllCertificates, sslTrustStoreFile, sslTrustStorePassword, url, userAgent
This stream contains the information sent in a http request. Each tuple with valid request data results in an HTTP request except if method NONE is specified.
Data received in the http response be sent on this port. Other attributes are assigned from input stream.
Optional: authenticationFile, authenticationProperties, authenticationType, connectionTimeout, contentType, disableAutomaticRetries, disableContentCompression, disableRedirectHandling, errorDiagnostics, extraHeaders, fixedContentType, fixedMethod, fixedUrl, method, outputBody, outputBodyRaw, outputCharSet, outputContentEncoding, outputContentType, outputDataLine, outputHeader, outputStatus, outputStatusCode, proxy, proxyPort, redirectStrategy, requestAttributes, requestAttributesAsUrlArguments, requestBodyAttribute, requestUrlArgumentsAttribute, sslAcceptAllCertificates, sslTrustStoreFile, sslTrustStorePassword, url, userAgent
Properties to override those in the authentication file.
The type of used authentication method. Valid options are "STANDARD", "OAUTH1," and "OAUTH2". Default is "STANDARD". If "STANDARD" is selected, the authorization may be none, basic or digest authorization. If the server requires basic or digest authorization one of the parameters authenticationFile or authenticationProperties is required. If the "OAUTH1" option is selected, the requests will be singed using OAuth 1.0a If the "OAUTH2" option is selected, the requests will be singed using OAuth 2.0.
Set the connection timeout in milliseconds. If value is 0, the default connection timeout is used. Default is 0.
MIME content type of entity for POST and PUT requests. Only one of contentType and fixedContentType must be specified. Defaults to application/json.
Disables automatic request recovery and re-execution. Default is false
Disables automatic content decompression. Default is false
Disables automatic redirect handling. Default is false. This parameter must not be used together with parameter redirectStrategy
Name of the attribute to populate the error diagnostics with. This string contains the diagnostics information when the program execution of the http operation throws an exception. This string is empty when a http response was received. The status line of the http response is issued in the dataStatus attribute.
Extra headers to send with request, format is Header-Name: value.
Fixed MIME content type of entity for POST and PUT requests. Only one of contentType and fixedContentType must be specified. Defaults to application/json.
Fixed method for each HTTP request. Every HTTP request uses the method provided. One and only one of method and fixedMethod must be specified.
Fixed URL to send HTTP requests to. Any tuple received on the input port results in a request to the URL provided (except for method NONE). One and only one of url and fixedUrl must be specified.
Attribute that specifies the method to be used in the HTTP request for a tuple. One and only one of method and fixedMethod must be specified.
Name of the attribute to populate the response body with. If this parameter is set, the operators returns one tuple for each request. Only one of outputDataLine and outputBody must be specified. This parameter is not allowed if the operator has no output port.If this parameter is set and parameter outputBodyRaw is set, all responses with entitiy mime type not equal to application/octet-stream or default/binary generate output here.
Name of the attribute to populate the raw response body with. The type of this attribute must be blob. Only one of outputDataLine and outputBodyRaw must be specified. This parameter is not allowed if the operator has no output port. You may use outputBodyRaw and outputBody.If this parameter is set and parameter outputBody is set, all responses with entitiy mime type equal to application/octet-stream or default/binary will generate output here.
Name of the attribute to populate the response entity charset with. This parameter is not allowed if the operator has no output port.
Name of the attribute to populate the response content encoding header with. This parameter is not allowed if the operator has no output port.
Name of the attribute to populate the response entity mime type with. This parameter is not allowed if the operator has no output port.
Name of the attribute to populate one line of the response data with. If this parameter is set, the operators returns one tuple for each line in the response body but at least one tuple if the body is empty. Only one of outputDataLine and outputBody must be specified. This parameter is not allowed if the operator has no output port.
Name of the attribute to populate the response header information with. The type of this attribute must be string list. This parameter is not allowed if the operator has no output port.
Name of the attribute to populate the response status line with. This parameter is not allowed if the operator has no output port.
Name of the attribute to populate the response status code as integer with. The type of this attribute must be int32. This is the numerical value from the http response or -1 if no response was received. This parameter is not allowed if the operator has no output port.
Hostname of the http-proxy to be used. If this parameter is omitted no proxy is used.
The proxy-port to be used. Default value is 8080. This parameter is ignored if no proxy parameter is specified.
Names of the attributes which are part of the request body. The content of these attributes is sent as request body in method POST. If parameter requestAttributesAsUrlArguments is true, the request attributes are additionally appended as arguments to the url in method GET. If this parameter is missing, all attributes, excluding those that are used to specify the URL, method, content type, Request url arguments or request attributes, are used in the request body. One empty element defines an empty list which means no attributes are considered request attributes.
If this parameter is true, the request attributes are appended as arguments to the url in method GET. If this parameter is false, the request attributes are not appended to the url. Default is false. These arguments are overwritten from a non-empty value in parameter requestUrlArgumentsAttribute.
Request body attribute for any method that accepts an entity (PUT / POST / PATCH). In method PUT and PATCH the body of request is taken from this attribute. In method POST, any non-empty value overwrites the request attributes.
Request url arguments attribute. If this parameter is set and the value of this attribute is not empty, the content of this string is appended as arguments to the request url. This overwrites the arguments which are generated from the request attributes. The value is expected to be unescaped and may contain non-ASCII characters
Accept all SSL certificates, even those that are self-signed. If this parameter is set, parameter sslTrustStoreFile is not allowed. Setting this option will allow potentially insecure connections. Default is false.
Path to .jks trust store file used for TODO: ?server? and client authentication. If this parameter is set, parameter sslTrustStorePassword is required.
Password for the trust store and the keys it contains
Attribute that specifies the URL to be used in the HTTP request for a tuple. One and only one of url and fixedUrl must be specified.
Assigns the header User-Agent value. Default is "Apache-HttpClient/4.5.5 (Java/1.8.0)"