You are here: Web Services > HTTPCaller

HTTPCaller

通过HTTP访问URL或HTTPS, performing a GET, PUT, POST, DELETE, HEAD, PATCH or OPTIONS operation.

This transformer replaces the HTTPFetcher, HTTPUploader, HTTPFileUploader, HTTPMultipartUploader, HTTPDeleter and HTTPHeader transformers.

Output

The HTTP response body may be saved to an attribute, or a file.By default the body is saved to the attribute identified by the响应体属性parameter.

The HTTP response status code will be stored in the attribute named by the状态代码属性parameter.By default this is the_http_status_codeattribute.For more information on HTTP Status Codes, please refer tohttp://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

In addition, the HTTP response headers will be saved in the list attribute specified by the列表属性响应头parameter.By default the headers are stored in the_headers{}list attribute.For a list of common HTTP response headers, please refer tohttp://en.wikipedia.org/wiki/List_of_HTTP_header_fields

If an error occurs while accessing the URL, the feature will be output via the 港口。In addition, an error message will be set in the attribute named by the错误属性parameter.

Parameters

Request

Query String Parameters

This table can be used to create additional URL query parameters.The parameters will be appended to the URL given in theRequest URLparameter.This can be useful when accessing a REST API endpoint which requires many parameters.The parameter names and values can be entered directly or constructed from attribute values.

Headers

This table can be used to create custom HTTP headers which will be sent along with the request.This can be used to customize the request that FME will make to the server.Header names and values can be entered directly or constructed from attribute values.In addition, the Name column provides a list of commonly used header names.

Body

The parameters in this group are only enabled when theHTTP Method参数设置为PUT,POST要么PATCH

Response

Save Response Body To File

Response Headers and Status

HTTP Client Options

Authentication Parameters

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace.More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers.To access a menu of these options, clickbeside the applicable parameter.For more information, seeTransformer Parameter Menu Options

Transformer Categories

Web Services

FME Licensing Level

FME Professional edition and above

Search FME Knowledge Center

Search for samples and information about this transformer on theFME Knowledge Center

标签Keywords: URLFetcher