SelectPdf for .NET - Helper Page - View HTTP Cookies - VB.NET / ASP.NET Sample

This page shows the HTTP Cookies sent to it:

care_did: dd5d735b-a195-4c49-8cb0-54b3939c1c1d
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
HandLtestDomainNameServer: HandLtestDomainValueServer
organic_source_str: Internal
handl_ip: 18.188.162.87
organic_source: https%3A%2F%2Fswift-cut.com%2Far%2F2016%2F11%2Feuroblech-stock-market-message
handl_original_ref: https%3A%2F%2Fswift-cut.com%2Far%2F2016%2F11%2Feuroblech-stock-market-message
handl_url_base: https%3A%2F%2Fswift-cut.com%2F2016%2F11%2Feuroblech-stock-market-message%2F
handl_landing_page: https%3A%2F%2Fswift-cut.com%2F2016%2F11%2Feuroblech-stock-market-message
handl_url: https%3A%2F%2Fswift-cut.com%2F2016%2F11%2Feuroblech-stock-market-message%2F
handl_ref: https%3A%2F%2Fswift-cut.com%2Far%2F2016%2F11%2Feuroblech-stock-market-message


Sample Code Vb.Net



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

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

        Protected Sub Page_Load(sender As Object, e As EventArgs)
            Dim cookies As String = String.Empty
            For Each key As String In Request.Cookies
                Dim cookie As HttpCookie = Request.Cookies(key)
                cookies += "<br/>" + cookie.Name + ": " + cookie.Value
            Next

            LitCookies.Text = cookies
        End Sub
    End Class
End Namespace