Sample code for 30+ languages & platforms
Classic ASP

Example: Http.GetRequestHeader method

Demonstrates the GetRequestHeader method.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0

set http = Server.CreateObject("Chilkat.Http")

hdr1 = "X-CSRF-Token"
hdr2 = "X-Example"

http.SetRequestHeader hdr1,"Fetch"
http.SetRequestHeader hdr2,"123ABC"

Response.Write "<pre>" & Server.HTMLEncode( hdr1 & ": " & http.GetRequestHeader(hdr1)) & "</pre>"
Response.Write "<pre>" & Server.HTMLEncode( hdr2 & ": " & http.GetRequestHeader(hdr2)) & "</pre>"

' Output:

' X-CSRF-Token: Fetch
' X-Example: 123ABC

%>
</body>
</html>