Forum Discussion
Hi,
I got the similiar problem when trying to set up the POST multipart/form-data in SoapUI.
I added the following to the Header:
'Contenty-Type' with the value of 'multipart/form-data; boundary=----WebKitFormBoundaryA6X2XSe7EZhljISy'
Select the 'Media Type' as 'multipart/form-data', then put the following content to the request body:
------WebKitFormBoundaryA6X2XSe7EZhljISy
Content-Disposition: form-data; name="file"; filename="attachment.txt"
Content-Type: text/plain
------WebKitFormBoundaryA6X2XSe7EZhljISy
Content-Disposition: form-data; name="subject"
Version(master)_URL(https://mercury-qa.morningstar.com/#)
------WebKitFormBoundaryA6X2XSe7EZhljISy
Content-Disposition: form-data; name="topic"
Asset Allocation
------WebKitFormBoundaryA6X2XSe7EZhljISy
Content-Disposition: form-data; name="country"
CU$$$$$USA
------WebKitFormBoundaryA6X2XSe7EZhljISy
Content-Disposition: form-data; name="recipients"
------WebKitFormBoundaryA6X2XSe7EZhljISy
Content-Disposition: form-data; name="feedback"
test
------WebKitFormBoundaryA6X2XSe7EZhljISy--
Then attached the file 'attachment.txt', run it, I got the following error:
HTTP/1.1 500 Internal Server Error
Did I miss anything? Anyone is able to help?
Thanks!
- sesleri8 years agoNew Contributor
Having the same issue. Seems soapui will not allow you to actually have separate form data in your request because of the automatic boundaries it inserts. Anyone figure this out?
Related Content
Recent Discussions
- 3 days ago