Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



   1269

multipart-post

by chupit0 - 11 December, 2020 - 02:44 AM
This post is by a banned member (chupit0) - Unhide
chupit0  
Infinity
36
Posts
10
Threads
5 Years of service
#1
(This post was last modified: 11 December, 2020 - 03:09 AM by chupit0.)
Content-Type: multipart/form-data; boundary=------WebKitFormBoundaryofkvhvwcjxohlnae
Multipart Data:
------WebKitFormBoundaryofkvhvwcjxohlnae
Content-Disposition: form-data; name="username"

ejample@gmail.com
------WebKitFormBoundaryofkvhvwcjxohlnae
Content-Disposition: form-data; name="password"

xxxxxx
------WebKitFormBoundaryofkvhvwcjxohlnae


how to make multipart posts in C # Help me please
I just need an example of a post already done I appreciate it if someone helps me
This post is by a banned member (beelzebubs) - Unhide
291
Posts
204
Threads
4 Years of service
#2
An easy way to do this would be to use Chilkats HttpRequest function.

Add it to your project via NuGet.
 
Code:
 
Chilkat.HttpRequest multiPart = new Chilkat.HttpRequest();

multiPart.HttpVerb = "POST";
multiPart.Path = "PATH";
multiPart.ContentType = "multipart/form-data";

multiPart.AddParam("username","USER");
multiPart.AddParam("password","PASS");

Console.WriteLine(multiPart.GenerateRequestText());

Hope this helps.  Pepelove
[Image: 7htJQPu.gif]

Prince of Demons - Lord of Flies

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)