indi를 사용하여 파일을 다운로드하려고하지만 (asp로 엑셀 응답 저장) 오류가 발생하여 wireshark를 사용하여 요청에 쿠키가 없습니다.TWebBrowser에서 쿠키 가져 오기
Twebbrowser 창에서 쿠키를 가져 와서 저장하려고합니다.
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;
반환 값 없음, 무슨 쿠키를 추출 (또는 2) twebbrowser 중, 또는 가장 좋은 방법은 뭔가 더 나은 내가 부족 있나요?
다음은'wininet.dll'을 로딩하고'HTMLOnly' 쿠키를 검색하는'InternetGetCookieExA' 메소드를 호출하는 코드를 발견 한 URL입니다. (http://portal.clevercomponents.com/KB/a74/copy-twebbrowser-cookies-to-tclhttp.aspx) –