たとえば、サーバーからファイルをダウンロードするようにヘッダーを設定すると、次のようになります。
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="downloaded.pdf"');
そして、ファイルのデータを出力するだけです
Content-DispositionでリモートURLを設定することは可能ですか?
例header('Content-Disposition: attachment; filename="http://remote.location/downloaded.pdf"
);
それとも私はそれについて間違った方法で考えているのですか?