Forum Discussion
SmartBear_Suppo
13 years agoSmartBear Alumni (Retired)
Hi Rhona,
sure... to send a request like this you need to:
1) Create an HTTP Request Step
2) Set the method to POST
3) Set the "Media Type" of the content to multipart/form-data
4) Check the "Post QueryString" checkbox
5) Attach the file(s) you want to send in the Attachments tab at the bottom of the request window
6) Add the desired parameters and their values; those parameters that should contain the contents of an attachment ("fname" in your example) should have the value "file:<name of attachment>", for example "file:readme.txt" if you attached a file named readme.txt
Send the request and check in the Raw Request tab that it was sent as desired..
Hope this helps,
regards,
/Ole
SmartBear Sweden
sure... to send a request like this you need to:
1) Create an HTTP Request Step
2) Set the method to POST
3) Set the "Media Type" of the content to multipart/form-data
4) Check the "Post QueryString" checkbox
5) Attach the file(s) you want to send in the Attachments tab at the bottom of the request window
6) Add the desired parameters and their values; those parameters that should contain the contents of an attachment ("fname" in your example) should have the value "file:<name of attachment>", for example "file:readme.txt" if you attached a file named readme.txt
Send the request and check in the Raw Request tab that it was sent as desired..
Hope this helps,
regards,
/Ole
SmartBear Sweden
Related Content
- 2 years agorkadali