The following syntax fixes it for you:
curl -v -F key1=value1 -F upload=@localfilename URL
More Related Contents:
- When should I use GET or POST method? What’s the difference between them?
- What’s the difference between “Request Payload” vs “Form Data” as seen in Chrome dev tools Network tab
- Nodejs POST request multipart/form-data
- JavaScript post request like a form submit
- POST unchecked HTML checkboxes
- Is it a good practice to use an empty URL for a HTML form’s action attribute? (action=””)
- Preventing form resubmission
- Multiple forms in a single page using flask and WTForms
- Angular2 – Radio Button Binding
- PHP: check if any posted vars are empty – form: all fields required
- How do I use arrays in cURL POST requests
- Better Honeypot Implementation (Form Anti-Spam)
- How do you style the HTML5 form validation messages?
- Clear JSF form input values after submitting
- Manually Set Value for FormBuilder Control
- getting a checkbox array value from POST
- Angular: composite ControlValueAccessor to implement nested form
- cURL POST command line on WINDOWS RESTful service
- How to make ‘submit’ button disabled?
- Print $_POST variable name along with value
- Disable submit button when form invalid with AngularJS
- Firefox keeps form data on reload
- Dynamic row height in a SwiftUI form
- Avoid modal dismiss on enter keypress
- Post data and retrieve the response using PHP Curl?
- passing parameter to jenkins job through curl POST not working?
- Add span inside form’s placeholder
- multi-dimensional array post from form
- Undefined index error PHP
- How to keep changed form content when leaving and going back to HTTPS page? (works with HTTP)