I am trying to use httpGet to retrieve binary files, then push them through via a Script connector:
<arc:set item="httpGetInput" attr="url" value="[params.pdfUrl]" />
<arc:call op="httpGet" in="httpGetInput" out="response">
<arc:set attr="output.data" value="[response.http:content]" />
<arc:set attr="output.filename" value="test.pdf" />
<arc:push item="output" />
</arc:call>It downloads the file, and sends it through, however the file is garbled, I assuming this is a encoding problem somewhere.
Downloading the files directly from the source URL, the files render fine.
Said connector is inside an API Request, with Response content type set to “application/pdf”:

There must be something I am missing.



