Multi-Part in OB2

@Ruri How to send multi-part data in the request
This is my data. How can I send it over to request

Content-Disposition: form-data; name="memberId"
Content-Length: 9

Content-Disposition: form-data; name="subject"
Content-Length: 0

Content-Disposition: form-data; name="body"
Content-Length: 42

What was the best part of your day so far?
Content-Disposition: form-data; name="sourceEvent"
Content-Length: 14

Content-Disposition: form-data; name="sourceEventId"
Content-Length: 0

Content-Disposition: form-data; name="metadata"
Content-Length: 126

[{"type":"emptyChatView","data":{"memberId":336084860,"variation":"witty_text","actionText":"Gifts make great icebreakers!"}}]


look this: Help with multipart post data

@sleguen Thanks for the guide, but I’m using the native version so there is no option to add string content

I didn’t find the time to implement the UI for that in the native version yet. Please refer to the web version and then copy over the LoliCode from that to the native one, sorry for the trouble!

1 Like

Thanks, for the help and no problem at all

@Ruri How can I add content length instead of the content type after every content in multi-part
the result I want

Content-Disposition: form-data; name="memberId"
Content-Length: 10


The result I’m having

Content-Type: text/plain; charset=utf-8
Content-Disposition: form-data; name=memberId


Just build the post data manually using \n for linebreaks, that way you can control exactly what gets sent. Use the random string block to generate a random boundary.

1 Like