Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Undeclared identifier: 'IStream'
Undeclared identifier: 'IStream'
Delphi 11
I am trying to get the response body and modify it on cef4edge broswer
No luck
can any one give an example?
Thank you.
I am trying to get the response body and modify it on cef4edge broswer
No luck
can any one give an example?
Thank you.
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Undeclared identifier: 'IStream'
Hi,
If you mean that you would like to intercept the response body to modify it before it's processed then WebView2 doesn't have any API to do that, so you can't use WebView4Delphi for that purpose.
In that case you have to use CEF4Delphi. Install it and run the ResponseFilterBrowser demo. That demo shows you how to intercept, modify or replace resources.
If you mean that you would like to intercept the response body to modify it before it's processed then WebView2 doesn't have any API to do that, so you can't use WebView4Delphi for that purpose.
In that case you have to use CEF4Delphi. Install it and run the ResponseFilterBrowser demo. That demo shows you how to intercept, modify or replace resources.
Re: Undeclared identifier: 'IStream'
Thank you i check out
Re: Undeclared identifier: 'IStream'
well The function Chromium1GetResourceResponseFilter is calling only once.
if i navigate to adiferent website then is not called.
any solution on this?
thank you.
if i navigate to adiferent website then is not called.
any solution on this?
thank you.
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Undeclared identifier: 'IStream'
The filter works for network requests and not when the browser reads the resource content from the cache.
Read the code comments and the linked documents for more information.
Read the code comments and the linked documents for more information.
Re: Undeclared identifier: 'IStream'
No This is not the problem Url is always Different so is not cached.
What about get in text the response Body from a request is this possible?
Thanks any way.
What about get in text the response Body from a request is this possible?
Thanks any way.
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Undeclared identifier: 'IStream'
The URLRequest demo creates a custom request and it's able to get the response body.
I would also check if the PostInspectorBrowser demo shows the information you need.
I would also check if the PostInspectorBrowser demo shows the information you need.
Re: Undeclared identifier: 'IStream'
I am talking about cef4-edge Webview component not chrome.
there is not demo like this.in folder
there is not demo like this.in folder
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Undeclared identifier: 'IStream'
Try the NavigateWithWebResourceRequestBrowser demo in WebView4Delphi.
It's similar to the URLRequest in CEF4Delphi but I'm not sure this is what you need because the results are always processed by WebView2.
It's similar to the URLRequest in CEF4Delphi but I'm not sure this is what you need because the results are always processed by WebView2.