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

--e10835ef-4bb1-47a0-bc49-67a2d4688669
Content-Disposition: form-data; name="memberId"
Content-Length: 9

336084860
--e10835ef-4bb1-47a0-bc49-67a2d4688669
Content-Disposition: form-data; name="subject"
Content-Length: 0


--e10835ef-4bb1-47a0-bc49-67a2d4688669
Content-Disposition: form-data; name="body"
Content-Length: 42

What was the best part of your day so far?
--e10835ef-4bb1-47a0-bc49-67a2d4688669
Content-Disposition: form-data; name="sourceEvent"
Content-Length: 14

meet_grid_pill
--e10835ef-4bb1-47a0-bc49-67a2d4688669
Content-Disposition: form-data; name="sourceEventId"
Content-Length: 0


--e10835ef-4bb1-47a0-bc49-67a2d4688669
Content-Disposition: form-data; name="metadata"
Content-Length: 126

[{"type":"emptyChatView","data":{"memberId":336084860,"variation":"witty_text","actionText":"Gifts make great icebreakers!"}}]
--e10835ef-4bb1-47a0-bc49-67a2d4688669--

Hi,

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

--02fedabb-8798-413b-b5ca-4cc5dbbc081f
Content-Disposition: form-data; name="memberId"
Content-Length: 10

1188249169

The result I’m having

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

356454225

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