CSS: api request body disposition form-data Example


CSS Example: This is the "api request body disposition form-data" Example. compiled from many sources on the internet by SimpleTutorials.org

API request body disposition form-data

POST http://example.com/api/upload HTTP/1.1
Content-Type: multipart/form-data; boundary=boundary

Content-Disposition: form-data; name="first"; filename="input.txt"

// The 'input.txt' file will be uploaded
< ./input.txt

Content-Disposition: form-data; name="second"; filename="input-second.txt"

// A temporary 'input-second.txt' file with the 'Text' content will be created and uploaded
Content-Disposition: form-data; name="third";

// The 'input.txt' file contents will be sent as plain text.
< ./input.txt --boundary--

* Summary: This "api request body disposition form-data" CSS Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!