RE: Http Redirect - How to redirect to other URL with proxy?


2006-02-10 05:47:51 PM
delphi35
Hi All,
I have created a project as WebServer Application in ISAPI.
Writing a redirector but can not find and property for proxy server.
Please advise.
Here comes my code in my action:-
procedure TwmMain.wmMainwaLogoutAction(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
Var reqURL, xDoc : string;
begin
reqURL := format('http://%s:%d/cronus/logout.jsp', [lTransactionURL,
lTransactionPort]);
xDoc := Request.QueryFields.Values['Input'];
Response.HTTPRequest.WriteString('Input=' + xDoc);
Response.HTTPRequest.ContentType := 'application/x-www-form-urlencoded';
Response.HTTPRequest.Accept := 'en';
Response.HTTPRequest.Connection := 'Keep-Alive';
Response.HTTPRequest.CacheControl := 'no-cache';
Response.SendRedirect(reqURL);
end;
Thanks in advance,
Ray