You are here: Workflows > HTTPCaller

HTTPCaller

通过HTTP或HTTPS访问URL,执行Get,Put,Post,Delete,Head,Patch或Options操作。

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响应正文属性参数。

The HTTP response status code will be stored in the attribute named by theStatus Code Attribute参数。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列表响应标题的属性参数。By default the headers are stored in the_headers{}列表属性。有关常见HTTP响应标头的列表,请参阅http://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 theError Attribute参数。

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 the请求URL.参数。访问需要许多参数的REST API端点时,这可能是有用的。参数名称和值可以直接输入或从属性值中构造。

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 theHTTPMethod参数设置为PUT,POSTorPATCH

响应

Save Response Body To File

响应Headers and Status

HTTP客户端选项

身份验证参数

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

网页

Workflows

FME Licensing Level

FME Professional edition and above

搜索FME知识中心

搜索有关此变压器的样本和信息FME Knowledge Center

TagsKeywords: URLFetcher