![mailist controller list add link to image mailist controller list add link to image](https://www.arraysolutions.com/image/cache/data/products/StackMatch/SM%20PBC-500x333.jpg)
![mailist controller list add link to image mailist controller list add link to image](https://venturebeat.com/wp-content/uploads/2018/05/star-treke284a2_-bridge-crew_20180518210705.jpg)
I found on this w3.org page that is possible to incapsulate multipart/mixed header in a multipart/form-data, simply choosing another boundary string inside multipart/mixed and using that one to incapsulate data. Ĭontent-Disposition: form-data name="name_of_post_request" filename="filename.xyz"Ĭontent of filename.xyz that you upload in your form with inputĬontent-Disposition: form-data name="image" filename="picture_of_sunset.jpg" Some text that you wrote in your html form. Many thanks to Santilli answer! I found that his choice for boundary is quite "unhappy" because all of thoose hyphens: in fact, as Name commented, when you are using your boundary inside request it comes with two more hyphens on front:Ĭontent-Type: multipart/form-data boundary=12345Ĭontent-Disposition: form-data name="sometext" You can do multiple tests with: while true do printf '' | nc -l localhost 8000 done
![mailist controller list add link to image mailist controller list add link to image](https://24hrstartup.com/storage/product-images/72-de89596f86e20bb1ffd8f1ae2441f369/screen-2.jpg)
9051914041544843365972754266-Īternativelly, cURL should send the same POST request as your a browser form: nc -l localhost 8000Ĭurl -F "text=default" -F -F localhost:8000 Open the HTML on your browser, select the files and click on submit and check the terminal. To see exactly what is happening, use nc -l or an ECHO server and an user agent like a browser or cURL.Ĭreate files to upload: echo 'Content of a.txt.' > a.txt EDIT: I am maintaining a similar, but more in-depth answer at: