Multi-Part Request
    • 21 Jun 2024
    • 1 Minute to read
    • Contributors
    • PDF

    Multi-Part Request

    • PDF

    Article summary

    This article will provide a sample of a multi-part request. The following is a Lasernet 9 setup in which we receive an XML file that creates two documents: a JSON file and a PDF. These are passed to the HTTP module.

    Some mandatory settings must be activated so Lasernet can carry out the multipart request:

    • Job Combining must be activated and configured on the HTTP module.

    • A Header named Content-Type with a value multipart subtype, for example, multipart/mixed.

    • A JobInfo named FileName.

    The following JobInfos are optional:

    • MimeType

    • HTTPFieldName

    This can be controlled in Sheet Options, in the Pre JobInfos tab.

    On our HTTP module, we are using a test site called webhook.site. If you want to test using this, navigate to http://webhook.site.

    This site will create a URL for you:

    This site will display the result: