Hi, here is my curl command that generates data in excel sheet.
curl --header "Content-Type: application/octet-stream" http://ipAddress:port/export --output myExcel.xlsx
I am trying to do the same in Soapui, and I do not know what to do with the "--output". Is there any equivalent to it in Soapui? Looking forward to an answer.
Solved! Go to Solution.
Thank you . please se those attachments.
1- the encoded string that I need to decode
2- the groovy code I use
3- the generated excel file by the groovy code
4- the curl command with --verbose
I have attached screen shots as answers for your questions.
The logget response for response2 is just to strip the decoded string from tags as you can see in the scerrenshot.
I am not sure about your question regarding the requirement for xls. I want the output at an excel file, exactly the same way I, when I use curl.
I have attached a screenshot to be sure of what you are asking about.
I have tried to save the decode file as xslx and then uploaded it and then decode it, and the result is a bin file which is still useless.
My question here is, what is the expected format of the file name is?
I will try to find spec/design requiremnets from developers.
Yes, when I run the curl command with
curl http//ip:port/export --output myexcel.xslx
then I get the excel shett with the expected data. The data in the excel sheet is about eg. person insurance info etc.
I am not 100% sure about the base64 encoded. It looks like other base64 encoded contents I have worked with earlier.