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

This page shows the HTTP Headers sent to it:

Connection: close
Accept: */*
Accept-Encoding: gzip, br, zstd, deflate
Cookie: handl_url=https%3A%2F%2Fswissklip.com%2Foffer%2Fplaqueblaster-fb-specialdealnanotoothbrushdownsell-stv8-sp%2F; _auth_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2aXNpdG9ySWQiOiItTzJuNnJkOThQMTFXek8yNHVvNSIsImF1dGhlbnRpY2F0ZWQiOm51bGwsImF1dGhQcm92aWRlciI6bnVsbCwiZXhwIjoxNzI0NjU3ODQ0LCJpYXQiOjE3MjIwNjU4NDR9.KLf-tCeJbmLT9F3_Jki-9OYxNY15PZ8g7fdxwQ_yjWE; HandLtestDomainNameServer=HandLtestDomainValueServer; 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; handl_landing_page=https%3A%2F%2Fswissklip.com%2Foffer%2Fplaqueblaster-fb-specialdealnanotoothbrushdownsell-stv8-sp%2F; handl_url_base=https%3A%2F%2Fswissklip.com%2Foffer%2Fplaqueblaster-fb-specialdealnanotoothbrushdownsell-stv8-sp%2F; handl_ip=3.12.153.79; siteCityCode=530100; _visitor_id=-O2n6rd98P11WzO24uo5
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;
        }
    }
}