PureBasic
PureBasic
Example: Rest.AddHeader method
Demonstrates theAddHeader method.
Chilkat PureBasic Downloads
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