Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-6937

Need to reference file for Body in REST Client

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Severity: Medium
    • Resolution: Duplicate
    • Affects Version/s: 4.2.0 GA (4.0.0 GA Suite Release)
    • Fix Version/s: None
    • Component/s: Step
    • Labels:
      None
    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      For HTTP Post request, sometimes I need to attach a file to the body. Currently, it is relatively easy to collapse a small xml file down to one string and provide that (just inconvenient). However, for the Bulk API loading into Salesforce (which is 10x faster than standard loading with Salesforce steps), sometimes I need to reference/send a CSV file.

      For example, I might like to include an xml file (login.xml), as in this example:
      curl https://login.salesforce.com/services/Soap/u/23.0 -H "Content-Type: text/xml;
      charset=UTF-8" -H "SOAPAction: login" -d @login.xml

      Or I might like to include a csv data file (data.csv), as in this example:
      curl https://instance.salesforce.com/services/async/23.0/job/jobId/batch -H
      "X-SFDC-Session: sessionId" -H "Content-Type: text/csv; charset=UTF-8" --data-binary
      @data.csv

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              slivey Jeff Huth
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: