DotNetBrowser API provides functionality that allows accessing HTTP response data such as HTML, plain text, JavaScript code, CSS, images, etc. Using this functionality you can capture AJAX response body content with information about its mime type. The following sample demonstrates how to use this functionality to access text/html data of each response:

C#

using DotNetBrowser;
using DotNetBrowser.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace AccessingHTTPResponseData
{
    class Program
    {
        private class SampleNetworkDelegate : DefaultNetworkDelegate
        {
            public override void OnDataReceived(DataReceivedParams parameters) {

                if (parameters.MimeType.Equals("text/html"))
                {
                    Console.WriteLine("MimeType = " + parameters.MimeType + "\n");
                    Console.WriteLine("Charset = " + parameters.Charset + "\n");
                    Console.WriteLine("Data = ");
                    String data = null;
                    for (int i = 0; i < parameters.Data.Length; i++)
                    {                        
                        data += (char)parameters.Data[i];                        
                    }
                    Console.WriteLine(data);
                }                
            }           
        }

        public class WindowMain : Window
        {
            private WPFBrowserView browserView;

            public WindowMain()
            {
                BrowserContext browserContext = BrowserContext.DefaultContext;
                browserContext.NetworkService.NetworkDelegate = new SampleNetworkDelegate();

                Browser browser = BrowserFactory.Create(browserContext);
                browserView = new WPFBrowserView(browser);

                Content = browserView;

                Width = 1024;
                Height = 768;
                this.Loaded += WindowMain_Loaded;
            }

            void WindowMain_Loaded(object sender, RoutedEventArgs e)
            {
                browserView.Browser.LoadURL("teamdev.com");
            }

            [STAThread]
            public static void Main()
            {
                Application app = new Application();

                WindowMain wnd = new WindowMain();
                app.Run(wnd);

                var browser = wnd.browserView.Browser;
                wnd.browserView.Dispose();
                browser.Dispose();
            }
        }
    }
}

VB.NET

Imports System.Windows
Imports DotNetBrowser
Imports DotNetBrowser.WPF

Module AccessingHTTPResponseData
    Private Class SampleNetworkDelegate
        Inherits DefaultNetworkDelegate

        Public Overrides Sub OnDataReceived(ByVal parameters As DataReceivedParams)
            If parameters.MimeType.Equals("text/html") Then
                Console.WriteLine("MimeType = " & parameters.MimeType & vbLf)
                Console.WriteLine("Charset = " & parameters.Charset & vbLf)
                Console.WriteLine("Data = ")
                Dim data As String = Nothing

                For i As Integer = 0 To parameters.Data.Length - 1
                    data += Convert.ToChar(parameters.Data(i))
                Next

                Console.WriteLine(data)
            End If
        End Sub
    End Class

    Public Class WindowMain
        Inherits Window

        Private browserView As WPFBrowserView

        Public Sub New()
            Dim browserContext As BrowserContext = BrowserContext.DefaultContext
            browserContext.NetworkService.NetworkDelegate = New SampleNetworkDelegate()
            Dim browser As Browser = BrowserFactory.Create(browserContext)
            browserView = New WPFBrowserView(browser)
            Content = browserView
            Width = 1024
            Height = 768
            AddHandler Me.Loaded, AddressOf WindowMain_Loaded
        End Sub

        Private Sub WindowMain_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
            browserView.Browser.LoadURL("teamdev.com")
        End Sub

        <STAThread>
        Public Shared Sub Main()
            Dim app As Application = New Application()
            Dim wnd As WindowMain = New WindowMain()
            app.Run(wnd)
            Dim browser = wnd.browserView.Browser
            wnd.browserView.Dispose()
            browser.Dispose()
        End Sub
    End Class
End Module