Table of Contents

Search

  1. Preface
  2. Introduction
  3. Dashboard
  4. Resources
  5. Workflows
  6. Task Reference
  7. Services Overview
  8. Users
  9. Logs and Reports
  10. Encryption
  11. System
  12. Appendix
  13. Glossary Terms

Managed File Transfer User Guide

Managed File Transfer User Guide

Example 1: HTTP Post and Get

Example 1: HTTP Post and Get

Follow the steps below to log into a site, post a file, and issue a get command to retrieve a file on a web server. This example assumes the file would only be accessible if the login is successful:
  1. To start the Post example, from within the Project Designer page, expand the Web folder in the Component Library, and then drag the HTTP task to the Project Outline.
  2. On the Basic tab of the HTTP task, specify the HTTP server resource value:
  3. Click the
    Add
    button in the sub-menu and select the
    Add a Post Method
    menu item.
  4. On the Basic tab of the Post Method element, specify the URI value:
    URI
    the URI (Uniform Resource Identifier), also known as
    URL
    (Uniform Resource Locator), (for example, /data/orders.xls). If left blank, the default URI of the server is requested.
    Content Type
    Specify the value to send in the Content-Type header field when making the request. When you post files (with or with out parameters) then the content type is set to 'multipart/mixed'.
  5. Click the
    Add
    button in the sub-menu and select the
    Add a Request Parameter
    menu item.
  6. On the Basic tab of the Request Parameter element, specify values for the following attributes:
    Name
    The name for this parameter.
    Value
    The value for this parameter.
  7. Click the
    Add
    button in the sub-menu and select the Add Same menu item.
  8. On the Basic tab of the Request Parameter element, specify values for the following attributes:
    Name
    The name for this parameter.
    Value
    The value for this parameter.
  9. Select the Post element from the Project Outline. Click the
    Add
    button in the sub-menu and select the Add a File menu item.
  10. On the Basic tab of the Add a File element, specify values for the following attributes:
    Name
    Specify the parameter (or part) name for this file name. The specified name will be sent to the server as a header in the Multi-Part data.
    Path
    Specify the location of the file to upload.
  11. For the Get example, in the
    Project Outline
    window on the left side of the page right-click the
    HTTP 
    task and select the
    Add a Get Method
    from the drop-down menu.
  12. On the Basic tab of the Get Method element, specify the URI values:
    URI
    the URI (Uniform Resource Identifier), also known as
    URL
    (Uniform Resource Locator), (for example, /documents/data.txt). If left blank, the default URI of the server is requested (for example, www.example.com).
  13. On the Response Body tab of the Get Method element, specify the Destination value:
    Destination
    Where the response body, if any, should be saved. By default, the response body will be saved to the job log. 
  14. On the Response Headers tab of the Get Method element, specify the File value:
    Response Body File
    The location of the file to which the response body, if any, should be saved. This is required if the
    Response Body Destination
    attribute is set to 'file'.
  15. Click the
    Save
    button when finished.

0 COMMENTS

We’d like to hear from you!