Exporteo Help
  • Destination Settings
    • Email
    • HTTP
  • Liquid variables
  • Liquid filters
  • Whitespace control
  • Useful code snippets
  • Multipart requests
  • Automatic retries
  • Post-processing
  • FAQ
  • Get support
Powered by GitBook
On this page

Was this helpful?

Multipart requests

PreviousUseful code snippetsNextAutomatic retries

Last updated 2 years ago

Was this helpful?

Some APIs require payload encoded as multipart/form-data. To send multipart requests from Exporteo, you need to add a Content-Type header set to multipart/form-data; boundary=ExporteoFormBoundary.

You also need to insert the multipart boundaries to the output template like in the code snippet below. The example includes three parts: username, password, and an xml file named orderxml. Please make sure to preserve the empty lines below each Content-Disposition.

--ExporteoFormBoundary
Content-Disposition: form-data; name="username"

store1234
--ExporteoFormBoundary
Content-Disposition: form-data; name="password"

o2qoTH91NDe6uqa
--ExporteoFormBoundary
Content-Disposition: form-data; name="orderxml"

<?xml version="1.0"?>
<order>
  ...
</order>
--ExporteoFormBoundary--