Java/Javascript read content-disposition file cont

2019-09-07 19:53发布

For my web site, I need to get some data from an URL whose response headers contains Content-Disposition attribute which forces me to download the file. I would like to know how I can read the content of the file without downloading the file to disk and do I/O to read it.
Doing so in either Java or JavaScript would be fine.

1条回答
Evening l夕情丶
2楼-- · 2019-09-07 20:10

Content-Disposition is just advisory. If you use a non-browser client (Java, curl, wget...) and do a GET request, you can just do whatever you want.

(I guess this means your question isn't sufficiently specific)

查看更多
登录 后发表回答