Sample code for 30+ languages & platforms
PureBasic

Example: Rest.AddHeader method

Demonstrates the AddHeader method.

Chilkat PureBasic Downloads

PureBasic
IncludeFile "CkRest.pb"

Procedure ChilkatExample()

    rest.i = CkRest::ckCreate()
    If rest.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkRest::ckAddHeader(rest,"User-Agent","MyApplication/1.0")

    ; ...
    ; ...
    ; ...


    CkRest::ckDispose(rest)


    ProcedureReturn
EndProcedure