indy を使用してファイルをダウンロードしようとしています (asp に投稿して Excel の応答を保存します) が、wireshark を使用してエラーが発生し、要求に Cookie がありません。
Twebbrowser ウィンドウから Cookie を取得して保存しようとしています。
procedure TForm1.WebBrowser1DownloadComplete(Sender: TObject);
var
document: IHTMLDocument2;
cookies:tstringlist;
begin
cookies:=tstringlist.Create;
document := WebBrowser1.Document as IHTMLDocument2;
cookies.Add(document.cookie);
//do stuff with them
end;
twebbrowser から cookie (または 2 つ) を抽出する最良の方法は何ですか?