How i Get Response from URL i load ?

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

How i Get Response from URL i load ?

Postby artron » Wed Nov 04, 2020 8:32 pm

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
artron
Newbie
 
Posts: 2
Joined: Wed Nov 04, 2020 8:28 pm

Re: How i Get Response from URL i load ?

Postby amaitland » Wed Nov 04, 2020 10:51 pm

What do you mean by response exactly?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: How i Get Response from URL i load ?

Postby amaitland » Wed Nov 04, 2020 11:05 pm

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.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: How i Get Response from URL i load ?

Postby artron » Thu Nov 05, 2020 1:02 am

thanks for reply.but any example using visual basic?
artron
Newbie
 
Posts: 2
Joined: Wed Nov 04, 2020 8:28 pm

Re: How i Get Response from URL i load ?

Postby amaitland » Thu Nov 05, 2020 3:08 pm

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
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 15 guests