Base Technology
- HTTPie
- https://httpie.org/doc
Parameters
- REST API plugin is subset of HTTPie It is over 90% compatible.
- For all questions about the parameters, you can visit this website for answers.
- https://httpie.org/doc.
How to UPLOAD files using the REST API plugin
Please see below as a sample parameter settings when you want to upload files to server with the REST API plugin.
Below are further explanations using a demo upload server.
The code looks like this ---
As you can see,
URL, form, Post, and files are all reflected to the plugin from a source code like this.
FYI, if you are familiar with Python, you can run a quick test with Python’s uploadserver 1.0.0 and build quick target server.
Return Code
Code | Meaning |
---|---|
0 | Execution successful |
1 | Execution failed |