SelectPdf for .NET - Helper Page - View HTTP Headers - C# / ASP.NET Sample

This page shows the HTTP Headers sent to it:

Connection: close
Accept: */*
Accept-Encoding: gzip, br, zstd, deflate
Cookie: handl_landing_page=https%3A%2F%2Fsearchbusinessgroup.com%2Fhome-care-marketing-agency%2Fseo%2F; HandLtestDomainNameServer=HandLtestDomainValueServer; handl_ip=3.16.212.245; _auth_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2aXNpdG9ySWQiOiItTzJuNTZqVjZVUWxtSW9tbjltSCIsImF1dGhlbnRpY2F0ZWQiOm51bGwsImF1dGhQcm92aWRlciI6bnVsbCwiZXhwIjoxNzI0NjU3Mzg2LCJpYXQiOjE3MjIwNjUzODZ9.WIVY_dmwxyTs8edfZCqkZIZsY61T3y6GWcWhaAyREQg; user_agent=Mozilla%2F5.0%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%3B%20compatible%3B%20ClaudeBot%2F1.0%3B%20%2Bclaudebot%40anthropic.com%29; _visitor_id=-O2n56jV6UQlmIomn9mH; handl_url_base=https%3A%2F%2Fstarface.com%2Fat%2Fpresse%2Fvoip-your-world-partnerkongress%2F; handl_url=https%3A%2F%2Fstarface.com%2Fat%2Fpresse%2Fvoip-your-world-partnerkongress%2F
Host: selectpdf.com
User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)


Sample Code C#



using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SelectPdf.Samples
{
    public partial class view_http_headers : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string headers = string.Empty;
            foreach (string name in Request.Headers)
            {
                string value = Request.Headers[name];
                headers += "<br/>" + name + ": " + value;
            }

            LitHeaders.Text = headers;
        }
    }
}