Antwise community forums

Full Version: VB6: NavigateWithWebResourceRequest method without headers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.

I try to use NavigateWithWebResourceRequest method and add my own headers but without success.

My code is:

Code:
EdgeWebBrowser.NavigateWithWebResourceRequest "https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending?sort=dont-sort", "GET", "", "Referer: https://example.com/" & vbCrLf & "Dnt: 1"


None of the headers are added.
I use private version 1.1.150.0 of Antview

Am I doing something wrong or are the headers not yet supported?
Hi,

The documentation from MS on this is conflicting.
One part says "add your own headers" and if you then click down on the "request data type", it only has a "get" interface for the headers.
From reading at the Microsoft WebView2 github issues page it seems that it should work for "GET" and possibly not for "POST".

In my source this is marked as "ToDo".

IOW, you are certainly not doing something wrong.

This is on my list to look into.
--
Wil
(2022-04-21, 09:38:01)wila Wrote: [ -> ]Hi,

In my source this is marked as "ToDo".

Hi Wil

Do you know the date when you will add headers support in the GET method?
This functionality would be very useful in one of my projects

Best regards
Przemek
No timeline yet I'm afraid.
I have a item open for it, but am still busy with the beta.
Bumped into something unexpected as it happens every now and then.

--
Wil
This has been resolved and will be available in the next update.

--
Wil