Skip to content

Instantly share code, notes, and snippets.

@KevinRagsdale
Created October 17, 2014 12:27
Show Gist options
  • Save KevinRagsdale/7e88d5d03148f95813b8 to your computer and use it in GitHub Desktop.
Save KevinRagsdale/7e88d5d03148f95813b8 to your computer and use it in GitHub Desktop.
<%@ Page Language="VB" %>
<script runat="server">
Protected Sub Page_Load(sender As Object, e As EventArgs)
Dim lcHeader As String = ""
If Not Request.Headers("X-MyHeader") Is Nothing Then
lcHeader = Request.Headers("X-MyHeader").ToString()
Response.Write("Hey, thanks for sending X-MyHeader: " & lcHeader)
Else
Response.Write("Aww... :( I was looking for X-MyHeader...")
End If
End Sub
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment