Forum Discussion
Hi nmrao
Thanks for the update, When i try manually hitting the url in browser, it downloads the excel file under downloads folder. i have already tried this manually before.
So, Please let me know whether we can achieve it using readyAPi?
Thanks
By the way, I can see the file downloaded in the temp directory(check attachments tab below response editor) when this is tried.
Note, Download Resources checkbox ticked.
Explore what you are doing differently.
- doubtsreadyapi4 years agoContributor
Thanks for the Information, I done get with the dynamic URL, with the HTTP method, Now i am getting the raw response as below, but i am not seeing any attachments tab under response, I am not sure where the file got downloaded. Do you have any idea where the file got downloaded?
and i dont see any difference the url which i am posting in the browser and the dynamic url. only thing before i was doing POST request. for HTTP Request
HTTP/1.1 200 OK
Server: gunicorn/20.0.4
Date: Mon, 01 Jun 2020 05:34:41 GMT
Connection: close
Content-Disposition: attachment; filename=testing_AutoAPI_Dev_7505_20200601.xlsm
Content-Length: 338158
Content-Type: application/vnd.ms-excel.sheet.macroEnabled.12
Last-Modified: Mon, 01 Jun 2020 05:24:47 GMT
Cache-Control: public, max-age=43200
Expires: Mon, 01 Jun 2020 17:34:41 GMT
ETag: "1590989087.1710029-338158-1402026568"
Access-Control-Expose-Headers: Content-Disposition
Access-Control-Allow-Origin: * - richie4 years agoCommunity HeroHey doubtsreadyapi,
Ive never tested response attachments before, but ive a couple of points to raise that might help.
Firstly without any readyapi! config overriding the operating system id expect a file to be written to your usr profile somewhere or at least a temp directory.
Im not in front of my laptop right now to check but have you had a look in the Preferences to see if you have a default download directory set?
Have you tried searching your hard drive for the filename or part of the filename?
This leads me onto my next point. Is the file coming in as an attachment on the response OR is it actually embedded within the response as a payload? Reason i ask is that you state the attachments tab isnt available on your response and also your screenshot appears to display encoded data. If you cant find a file on your harddrive id suspect (considering your screenshot) that perhaps the response doesnt have an attachment.
Once im back in front of my laptop i'll have a quick google and look in my readyapi! settings and update this response but in the meantime can you check your settings and if file exists on you harddrive
Ta
Rich - doubtsreadyapi4 years agoContributor
Hey richie
Thanks for the detailed explanation, I have already checked whether the file is available in my local directory with the name, but i haven't found any file with the name and i have checked the preferences also there is no directory mentioned.
Related Content
- 2 months agokadir
Recent Discussions
- 22 minutes agodipsthorat
- 21 hours agoarmygrad