Problem with reading PosData in Request from Website
Posted: Mon Jan 06, 2020 4:13 pm
Hello,
I've got the following problem:
I am currently trying to replace the Standard Delphi-TWebBrowser with TChromiumWindow in an application, that interacts with a website and as final step receives information in an xml-file from the website.
With the old TWebBrowser I simply used its BeforeNavigate2-Event, checked the URL and then processed PostData to access the xml-file.
While attempting to mirror that functionality with CEF4Delphi, I have currently run into a wall:
First I simply tried it by using the BeforeBrowse-Event to access the request with the right URL. However, both the HeaderMap as well as the PostData of the Request are always Nil.
Therefore I consulted various Demos like for example the "PostInspectorBrowser", "MiniBrowser" and "ResponseFilterBrowser" and tried to work with other events like "OnBeforeResourceLoad" etc, but so far to no avail.
As it is entirely possible that I made a very basic error considering that I am unfamiliar with the component, I first wanted to ask, what the right approach for my case would be.
Thanks.
I've got the following problem:
I am currently trying to replace the Standard Delphi-TWebBrowser with TChromiumWindow in an application, that interacts with a website and as final step receives information in an xml-file from the website.
With the old TWebBrowser I simply used its BeforeNavigate2-Event, checked the URL and then processed PostData to access the xml-file.
While attempting to mirror that functionality with CEF4Delphi, I have currently run into a wall:
First I simply tried it by using the BeforeBrowse-Event to access the request with the right URL. However, both the HeaderMap as well as the PostData of the Request are always Nil.
Therefore I consulted various Demos like for example the "PostInspectorBrowser", "MiniBrowser" and "ResponseFilterBrowser" and tried to work with other events like "OnBeforeResourceLoad" etc, but so far to no avail.
As it is entirely possible that I made a very basic error considering that I am unfamiliar with the component, I first wanted to ask, what the right approach for my case would be.
Thanks.