You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does pyresttest allow tests on the submission of multi-part form data? Specifically, sending some values and an image file. This is how I send the request via cURL:
curl -X POST -F "data1=value1" -F "data2=value2" -F "file=@1.gif" "http://localhost:5000/endpoint"
The text was updated successfully, but these errors were encountered:
Hi @pinventado, thank you for reaching out with your question. PyRestTest doesn't have any explicit support for multipart form data, but it is possible to construct one manually and specify it as the post body.
You could place the multipart/form-data directly in the YAML file, but it takes up a lot of space and the extra line spacing requirements make it look messy.
Does pyresttest allow tests on the submission of multi-part form data? Specifically, sending some values and an image file. This is how I send the request via cURL:
The text was updated successfully, but these errors were encountered: