...Navigate to a page in TWebbrowser with a Referer header of your choice?
|
Autor:
Thomas Stutz |
[ Print tip
] | | |
procedure TForm1.Button1Click(Sender: TObject);
var
Flags, Headers, TargetFrameName, PostData: OLEVariant;
Url, Ref: string;
IEApp: OLEVariant;
begin
Flags := '1';
TargetFrameName := '';
PostData := '';
Url := 'http://www.dach.de/weiterempfehlen.php';
Ref := 'http://www.dach.de/';
// u cannot navigate to the url above without this referer
Headers := 'Referer: ' + Ref + #10 + #13;
Webbrowser1.Navigate(Url, Flags, TargetFrameName, PostData, Headers);
end;
|