Hi
Is there a way from Ready APi to download a file using groovy script, and place it in my local directory?
ie., when i hit a URL the excel file download automatically when it get downloads it must get stored into my local directory path. and to download the file authorization is required, so how to pass the authorization?
Thanks in Advance.
Solved! Go to Solution.
Hi @nmrao
Thanks once again, You mean to say in the HTTP Request, in End Point field i have to pass like this "${#TestCase#FILE_DOWNLOAD_URL}"? and where will the file will get stored?
Please let me know my understanding is correct
I tried but its not working, as mentioned i kept http://( '${#TestCase#TEST URL}' ) in the Request URL
my sample url looks like below:
https//testsample.com//testingurl_f21ae8be36da/fa3f1ff5-93e1-4468-bf43-6541c317b6e8'%20
below is the error i am getting
2020-05-28 23:14:30.087 - Error getting response; java.net.URISyntaxException: Illegal character in authority at index 7: http://( 'https//testsample.com//testingurl_f21ae8be36da/fa3f1ff5-93e1-4468-bf43-6541c317b6e8'%20)
When i tried giving the url in the request url i am getting below error
{
"message" : "You must specify only one folder in the url for POST requests."
}
So please let me know how to achieve this.