Skip to Content
0
Former Member
Jul 08, 2008 at 05:13 PM

Multipart message via HTTP ?

102 Views

Has anyone successfully sent a multipart message via the HTTP receiver adapter ? I need to send such message to a marketplace product which requires that. It provides an HTTPS server.

Unfortunately this server expects the data in a format like when posting it from a browser form. The server only accepts it when the form has an input of type file. The result http body needs to contain something like this:

Content-Type: multipart/form-data; boundary=AaB03x

--AaB03x

Content-Disposition: form-data; name="submit-name"

Larry

--AaB03x

Content-Disposition: form-data; name="files"; filename="file1.txt"

Content-Type: text/plain

... contents of file1.txt ...

AaB03x

The XI Help speaks about "Enhancing the Payload", but it is not clear to me how we can code a multipart message with the prolog / epilog parameter. Is it doable with configuration ? If not, where in XI do I have full control over the HTTP body which is to be sent ?

CSY