How to make Multipart post request in c#

So i neec help, i wan’t to know how to make a multipart post request in c# for my program, i know some but don’t know how to make the random boundary thing or how to put it

Are you using the default HttpClient of the System.Net assembly to perform your requests or are you using a 3rd party library? Because the answer depends on the library being used.

It should automatically generate and add boundary if you do it like this. Please use fiddler and check the request in its raw form to see exactly what Leaf.xnet is sending to the server.

Hello good morning Ruri, I hope you are having a good time.

Sorry to bother you and I have come to you as a last resort since I found information but when it came to applying it I did not have the results I expected.

I’ll put you in context. I want to learn how to create a multi-part shape boundary for your library in post data. To be more precise, I am referring to this ‘OpenBullet2/RuriLib.Http at master · openbullet/OpenBullet2 · GitHub’. ‘Example (Custom Client)’.

I don’t have as much knowledge of C# as you. I was able to get it working with the HttpClient class and the MultipartFormDataContent class

But I want to know how to do it with your library. I would really appreciate it if you could explain it to me, first of all thank you and have a wonderful day.

Hello, please see here how it’s done in the RuriLib library which in turn uses RuriLib.Http

1 Like

Hello, good day Ruri, thank you very much for responding and helping. I’ll check it out and thanks again. Have a wonderful day friend