How to use curl post to give input form file in a request? or What's the correct way to curl post wit

14 Replies, 748 Views

For curl post give input form file, `-F` is the way. No extra headers needed unless the server requires them.

If you’re unsure, run `curl --trace-ascii debug.txt` to log everything. Helps a ton with weird issues.

Also, if the form has checkboxes or selects, just add them as more `-F` params. Easy peasy.

Messages In This Thread



Users browsing this thread: 1 Guest(s)