SelectPdf Free Html To Pdf Converter for .NET VB.NET / ASP.NET - Helper Page - View HTTP Headers

This page shows the HTTP Headers sent to it:

Connection: Keep-Alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip
Host: selectpdf.com
If-Modified-Since: Sat, 20 Oct 2018 05:03:30 UTC
User-Agent: CCBot/2.0 (https://commoncrawl.org/faq/)


Sample Code Vb.Net



Imports System.Collections.Generic
Imports System.Collections.Specialized
Imports System.Linq
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls

Namespace SelectPdf.Samples
    Partial Public Class view_http_headers
        Inherits System.Web.UI.Page

        Protected Sub Page_Load(sender As Object, e As EventArgs)
            Dim headers As String = String.Empty
            For Each name As String In Request.Headers
                Dim value As String = Request.Headers(name)
                headers += Convert.ToString((Convert.ToString("<br/>") & name) + ": ") & value
            Next

            LitHeaders.Text = headers
        End Sub
    End Class
End Namespace