I need to download a file that I got from a REST search. The URL is like the following:
https://abc.def/geh/servlet/rest/vault?oid=xxx&expr=files.file1
(I needed to edit it due to privacy reasons..)
The file is supposed to be a result of a Nastran computation, it can be viewed by a simple Texteditor. The Extension is .pch, it is relatively large (~21mb)
How can that be implemented in VBA?
If the file already exists on the server and doesn't have to be built by way of a query etc, you can use an API call like so:
First of all - the link does not work. Second of all: there can be 2 approaches depending on the output of the HTTP request.
If the output is file you can use the code below:
If the output is a simple text HTML response you can save the output to a file