Antwise community forums
VB6: NavigateWithWebResourceRequest method without headers - Printable Version

+- Antwise community forums (https://forums.antwise.com)
+-- Forum: Antview (https://forums.antwise.com/forumdisplay.php?fid=11)
+--- Forum: Antview for Windows (https://forums.antwise.com/forumdisplay.php?fid=12)
+--- Thread: VB6: NavigateWithWebResourceRequest method without headers (/showthread.php?tid=114)



VB6: NavigateWithWebResourceRequest method without headers - MrPrzemek - 2022-04-21

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?


RE: VB6: NavigateWithWebResourceRequest method without headers - wila - 2022-04-21

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


RE: VB6: NavigateWithWebResourceRequest method without headers - MrPrzemek - 2022-04-29

(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


RE: VB6: NavigateWithWebResourceRequest method without headers - wila - 2022-04-29

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


RE: VB6: NavigateWithWebResourceRequest method without headers - wila - 2022-05-18

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

--
Wil