How can I rewrite this CURL multipart/form-data request without using -F?
Solved: curl \ -X POST \ -H “Content-Type: multipart/form-data; boundary=—————————-4ebf00fbcf09″ \ –data-binary @test.txt \ http://localhost:3000/test Where test.txt contains the following text, and most importantly has CRLF (\r\n) line endings: ——————————4ebf00fbcf09 Content-Disposition: form-data; name=”example” test ——————————4ebf00fbcf09– Notes: it is important to use –data-binary instead of plain old -d as the former preserves the line endings (which … Read more