Xojo Plugin
Xojo Plugin
Example: Http.GetRequestHeader method
Demonstrates theGetRequestHeader method.
Chilkat Xojo Plugin Downloads
Dim success As Boolean
success = False
Dim http As New Chilkat.Http
Dim hdr1 As String
hdr1 = "X-CSRF-Token"
Dim hdr2 As String
hdr2 = "X-Example"
http.SetRequestHeader hdr1,"Fetch"
http.SetRequestHeader hdr2,"123ABC"
System.DebugLog(hdr1 + ": " + http.GetRequestHeader(hdr1))
System.DebugLog(hdr2 + ": " + http.GetRequestHeader(hdr2))
// Output:
// X-CSRF-Token: Fetch
// X-Example: 123ABC