Page 1 of 1

How i Get Response from URL i load ?

PostPosted: Wed Nov 04, 2020 8:32 pm
by artron
i load using

Code: Select all
browser.Load("https://example.com/")


i was add handler
Code: Select all
AddHandler browser.LoadingStateChanged, AddressOf OnLoadingStateChanged


onhandler
Code: Select all
    Private Sub OnLoadingStateChanged(ByVal sender As Object, ByVal args As LoadingStateChangedEventArgs)
        If args.IsLoading = False Then
            ' what i will get response if complite

        End If
    End Sub

Re: How i Get Response from URL i load ?

PostPosted: Wed Nov 04, 2020 10:51 pm
by amaitland
What do you mean by response exactly?

Re: How i Get Response from URL i load ?

PostPosted: Wed Nov 04, 2020 11:05 pm
by amaitland
You can use http://cefsharp.github.io/api/85.3.x/ht ... eAsync.htm if all your after is the source for the main frame.

Re: How i Get Response from URL i load ?

PostPosted: Thu Nov 05, 2020 1:02 am
by artron
thanks for reply.but any example using visual basic?

Re: How i Get Response from URL i load ?

PostPosted: Thu Nov 05, 2020 3:08 pm
by amaitland
GetSourceAsync returns a Task, you can await or ContinueWith.

I don't have any vb.net specific examples. The following should explain the basics

https://docs.microsoft.com/en-us/dotnet ... syncMethod