Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB6: NavigateWithWebResourceRequest method without headers
#1
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?
Reply
#2
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
Reply
#3
(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
Reply
#4
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
Reply
#5
This has been resolved and will be available in the next update.

--
Wil
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)