You are here: FME Transformers > Web Services > HTTPUploader

HTTPUploader

Uploads data to a URL using an HTTP PUT or POST operation. The result of the upload will be stored in the specified target attribute.

If an error occurs while uploading the data, the translation will stop, unless the Continue on Error parameter is set to Yes.

This transformer may be used to simulate a web form submission, as from a browser:

name=John%20Doe&address=123%2CSomewhere%20Rd%2E

The TextEncoder transformer may be used to aid with the creation of the request body.

Output

The body of the server response will be stored in the attribute identified by the Target Attribute parameter. The encoding of this attribute will depend on the value of the Use Encoding from HTTP Response Headers parameter.

The HTTP Response status code will be stored in the _http_status_code attribute. In addition, the HTTP response headers will be saved in the list attribute specified by the List Attribute for Response Headers parameter.

The HTTP status code and HTTP response headers will be logged with each request.

For more information on HTTP Status Codes, please refer to http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html. For a list of common HTTP response headers, please refer to http://en.wikipedia.org/wiki/List_of_HTTP_header_fields.

If an error occurs while accessing the URL, the translation will continue, and the feature will be output via the <REJECTED> port.

Parameters

HTTP Request

HTTP Response

HTTP Authentication Parameters

Proxy Parameters

Usage Notes

You can also use this transformer to upload data to an FTP server. When doing so, set the Upload Method parameter to PUT. If required, you can specify an FTP username and password in the HTTP Authentication Username and HTTP Authentication Password parameters. When uploading to an FTP server, neither the specified target attribute nor the _http_status_code attribute will be populated.

Editing Transformer Parameters

About Transformer Parameter Options

Transformer Categories

Web Services

FME Licensing Level

FME Professional edition and above

Search FMEpedia

Search for samples and information about this transformer on FMEpedia.