Hack Forums
[C#] Multipart/form-data site - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Multipart/form-data site (/showthread.php?tid=5654499)



Multipart/form-data site - Andersen. - Jun 24, 2017

Does anyone know how to create a account creator bot with a multipart/form-data site? I only know application/x-forum-urlencode and i need some help :)


* - TCP - Jun 24, 2017

You need to specify the different content-type in header, example
Code
multipart/form-data; boundary=---------------------------[RANDOM STRING]

Then format the data you send as
Code
-----------------------------[BOUNDARY STRING]
Content-Disposition: form-data; name="FieldName"

Field Value

If you upload a file you also need to add filename after name and the content-type of the file under content-disposition

With HttpWebRequest you can just write the whole data in the stream