![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(PowerBuilder) Example: Http.HasRequestHeader methodDemonstrates the
integer li_rc oleobject loo_Http integer b loo_Http = create oleobject li_rc = loo_Http.ConnectToNewObject("Chilkat.Http") if li_rc < 0 then destroy loo_Http MessageBox("Error","Connecting to COM object failed") return end if loo_Http.SetRequestHeader("X-CSRF-Token","Fetch") b = loo_Http.HasRequestHeader("X-CSRF-Token") if b = 1 then Write-Debug "X-CSRF-Token: Yes" else Write-Debug "X-CSRF-Token: No" end if b = loo_Http.HasRequestHeader("X-Something") if b = 1 then Write-Debug "X-Something: Yes" else Write-Debug "X-Something: No" end if // The Accept and Accept-Encoding headers are default headers automatically added, // unless the application chooses to remove by calling RemoveRequestHeader for each. b = loo_Http.HasRequestHeader("Accept") if b = 1 then Write-Debug "Accept: Yes" else Write-Debug "Accept: No" end if // Output: // X-CSRF-Token: Yes // X-Something: No // Accept: Yes destroy loo_Http |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.