CkPython
CkPython
Example: Http.GetRequestHeader method
Demonstrates theGetRequestHeader method.
Chilkat CkPython Downloads
import chilkat
success = False
http = chilkat.CkHttp()
hdr1 = "X-CSRF-Token"
hdr2 = "X-Example"
http.SetRequestHeader(hdr1,"Fetch")
http.SetRequestHeader(hdr2,"123ABC")
print(hdr1 + ": " + http.getRequestHeader(hdr1))
print(hdr2 + ": " + http.getRequestHeader(hdr2))
# Output:
# X-CSRF-Token: Fetch
# X-Example: 123ABC