Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NavigateWithWebResourceRequest headers : --> to do (sorry)
Hi, the documentation for the NavigateWithWebResourceRequest says  headers : --> to do (sorry).  I wanted to confirm that this means anything specified in the headers paramater is not being passed.

Is there an eta on when this might be implemented ?

Hi Steve,

Sorry about that. It is the documentation that is missing, the feature itself has actually been implemented in the currently published version.

But without the documentation on how-to use that, it is anyones guess I suppose. One could go and look at how this works in WebView2, but that's not always the full answer either.

The documentation has been written and we're working on a new release.

Below I have copied the content here so that you don't have to wait on that release as I do not yet have an ETA.

Let me know if there's any more questions.

Hope this helps,



Interface AntView

Type: Method
Parameters: String uri String method String postData String headers
Returns: nothing

Use this navigation to create a custom navigation.
This method internally creates a custom WebResourceRequest object that is then passed to the uri on your behalf.

uri has the full URL of the resource you want to access, including the protocol.
uri = ""

Allowed methods: "GET"/"POST"

postData will only be send if the method is "POST" and the url scheme starts with either http or https.
If you need to pass form data in the postData then you add it as a standard url encoded scheme. AntView does not url encode the data for you.
Example in DataFlex:
Move "" to sURL
Move "Content-Type: application/x-www-form-urlencoded\r\n" to sHeaders
Move "name=Pete&" to sText
Send ComNavigateWithWebResourceRequest of oEdgeWebBrowser sURL "POST" sText sHeaders

headers : You can add multiple headers,  the way to seperate those is with carriage return, linefeed written as "\r\n"
Headers = "Referer:\r\nDnt: 1\r\n"
Headers = "Content-Type: multipart/form-data\r\n"

Forum Jump:

Users browsing this thread: 1 Guest(s)