Home > Back-end >  How to own the isapi extension processing after the HTTP request to the IIS continue to processing,
How to own the isapi extension processing after the HTTP request to the IIS continue to processing,

Time:10-06

As title, I recently very broken, in developing an isapi plug-in,
Now the problem is how to own the isapi extension processing after the HTTP request to the IIS continue to processing, to return to normal web page?
Beg god give directions, I appreciate

Qq: 649510174, you can pay a fee

CodePudding user response:

Write code in WebModule OnDefaultAction events,
In this event, setting WebResponse. Content:=to return to the HTM.

CodePudding user response:

Brother, I want to return is a result of processing an asp page (asp), not their fill of the HTML page, is there a way to achieve this?"

CodePudding user response:

It performs the HTTP client to invoke the asp page, get the page content fill to WebResponse. The content

CodePudding user response:

Upstairs brother, how are you, that is down the code
Procedure TWebModule1. WebModule1WebActionItem1Action (Sender: TObject;
Request: TWebRequest; Response: TWebResponse; Var Handled: Boolean);
The begin
WebResponse. Content:=???????//this place should be how to write?


LogInfo (Request) Method);
end;
,
How to write? Thank you very much

CodePudding user response:

reference sz_haitao reply: 3/f
to perform HTTP client to invoke the asp page, get the page content fill to WebResponse. The content


Upstairs brother, how are you, that is down the code
Procedure TWebModule1. WebModule1WebActionItem1Action (Sender: TObject;
Request: TWebRequest; Response: TWebResponse; Var Handled: Boolean);
The begin
WebResponse. Content:=???????//this place should be how to write?


LogInfo (Request) Method);
end;
,
How to write? Thank you very much

CodePudding user response:

To create a indyhttpclt object, by its url to access the asp, get back to?????? Location, and then release indyhttpclt object

CodePudding user response:

refer to 6th floor sz_haitao response:
to create a indyhttpclt object, by its url to access the asp, get back to?????? Location, and then release indyhttpclt object

Thank you for your reminding, I'll try, but any kind of method, direct transfer will not handle this request directly to the IIS to handle?
My qq: 649510174, thank you very much

CodePudding user response:

Have a redirect, don't know whether to your scene

CodePudding user response:

1. All the parameters in WebRequest out (see the browser's developer tools in these values).
2. Using WinSock value to the IIS ASP site, retrieve the results, to WebResponse. Content,

So we can get to the results of the building Lord,
Just, like this will not reinvent the wheel?

CodePudding user response:

Thanks Pal's enthusiasm to help ha

CodePudding user response:

The above approach is not correct,

The standard treatment for HSE_REQ_IO_COMPLETION
  • Related