Skip to content

Instantly share code, notes, and snippets.

@KevinRagsdale
Created October 17, 2014 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KevinRagsdale/d4393f732a72bd5e783e to your computer and use it in GitHub Desktop.
Save KevinRagsdale/d4393f732a72bd5e783e 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