Multipart/Related Content [boundry]

Hoping someone here can post an example/snip it of code of a multipart/related content request. I’m building something in LUA for Google Drive and I need to send the application/json first followed by the file itself. Just kind of confused on how all this is constructed.

Thanks

I don’t have any examples but here are some descriptive links:

[ul][li]Wikipedia on MIME Multipart[/li]
[li]RFC 2387[/li][/ul]

The last time I had to deal with MIME formatted messages I remember going crazy dealing with the separator lines and the “–” markers. It requires a stupid level of precision.

That helps, thanks for the info and yes - what a total pain !