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:

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: x-gzip, gzip, deflate
Host: selectpdf.com
User-Agent: CCBot/2.0 (http://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