Welcome Guest Search | Active Topics | Sign In | Register

WebView1_BeforeRequestLoad, how to get the return data Options
kevin_ll
Posted: Thursday, April 14, 2016 10:02:52 AM
Rank: Member
Groups: Member

Joined: 12/10/2015
Posts: 17
How to get the return of the request to send the request (for example, in the flash to upload pictures to return content)
Quote:

Private Sub WebView1_BeforeRequestLoad(sender As Object, e As EO.WebBrowser.BeforeRequestLoadEventArgs) Handles WebView1.BeforeRequestLoad
‘e.Request.ID ‘‘What is the role of this
End Sub

eo_support
Posted: Thursday, April 14, 2016 10:51:23 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

I am not sure what you meant by "get the return of the request". BeforeRequestLoad allows you to decide whether you want to cancel the request, or potentially modify the request, for example, attaching additional header entries to the request before the request is sent out to the server.

Thanks!
kevin_ll
Posted: Thursday, April 14, 2016 12:21:15 PM
Rank: Member
Groups: Member

Joined: 12/10/2015
Posts: 17
a HTTP Analyzer tool.
How to get this request back to the HTML code
“WebView” control can be achieved?
eo_support
Posted: Thursday, April 14, 2016 1:06:32 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
You don't need the WebView for that. You can easily get the HTTP response by using .NET's built-in WebRequest class. What's hard is to parse and display the HTML page. That's where the WebView comes in. If you want to display some pages but not some others, you can handle the WebView's ShouldForceDownload event and treat the one you want to as a download.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.