I would like to download a csv file from a webpage, however when I send the HTTP request the return is Empty(). My code is as follows:</CODE><CODE class=" language-jsl">
request = New HTTP Request( URL( url), Method( "Get" ), Headers( {"Authorization: Bearer " || token} ));
data = request << send;次の応答ヘッダーを受信したので、サーバーにアクセスしていると確信できます。
GetResponseHeaders = ["content-disposition" => "attachment; filename=text.csv", "content-type" => "text/csv; charset=utf-8", "date" => 06Mar2024:17:08:05, "server" => "uvicorn", "transfer-encoding" => "chunked"];
ただし、データは Empty() です。 text.csv ファイルをダウンロードしたいのですが、JSL でダウンロードする方法が見つかりません。
おそらく、少なくとも部分的にはエンドポイントに依存します。 HTTP リクエストの取得 (ファイルのダウンロード): 60000 ミリ秒後に操作がタイムアウトしました。
<< ダウンロードは機能します

Names Default To Here(1);
request = New HTTP Request(
URL(
"https://community.jmp.com/kvoqx44227/attachments/kvoqx44227/sample-data/49/1/BlueBirds.jmp"
),
Method("Get")
);
file = request << Download(
"$TEMP/BlueBirds.jmp", "replace", "show progress"
);
If(!Is Empty(file),
Open(file)
);