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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

NavigateWithWebResourceRequest

Post Reply
sodlf159
Posts: 90
Joined: Thu Nov 09, 2023 1:55 pm

NavigateWithWebResourceRequest

Post by sodlf159 »

When called with NavigateWithWebResourceRequest

It is automatically redirected to WVBrowser1 and displayed.

Can't it show up in WVBrowser1?

WVBrowser1.CoreWebView2.NavigateWithWebResourceRequest(Request); When GET and POST are called, they are displayed in WVBrowser1. Can I make them not displayed?
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: NavigateWithWebResourceRequest

Post by salvadordf »

Try setting the TWVWindowParent width and height to 1 pixel.
sodlf159
Posts: 90
Joined: Thu Nov 09, 2023 1:55 pm

Re: NavigateWithWebResourceRequest

Post by sodlf159 »

What is the other way?
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: NavigateWithWebResourceRequest

Post by salvadordf »

Try creating the browser normally and then setting the visibility to false when it's fully initialized.
Making the request after that.
sodlf159
Posts: 90
Joined: Thu Nov 09, 2023 1:55 pm

Re: NavigateWithWebResourceRequest

Post by sodlf159 »

salvadordf wrote: Tue Feb 25, 2025 10:16 am Try creating the browser normally and then setting the visibility to false when it's fully initialized.
Making the request after that.
It is so inconvenient. My purpose is to make GET and POST not appear like idhttp when I want to automate and scrape something inside the browser and I have a packet to send, but when I send the packet, I am taken to a window that looks like this
Post Reply