Sample code for 30+ languages & platforms
DataFlex

Example: Rest.AddHeader method

Demonstrates the AddHeader method.

Chilkat DataFlex Downloads

DataFlex
Use ChilkatAx-win32.pkg

Procedure Test
    Handle hoRest
    Boolean iSuccess

    Get Create (RefClass(cComChilkatRest)) To hoRest
    If (Not(IsComObjectCreated(hoRest))) Begin
        Send CreateComObject of hoRest
    End

    Get ComAddHeader Of hoRest "User-Agent" "MyApplication/1.0" To iSuccess

    // ...
    // ...
    // ...


End_Procedure