* Makefile
* config/*
* contrib/*
* doc/*
* extras/*
* include/*
* lib/*
* package/*
* src/*
* tests/*
* utils/*
* removed empty lines left after removed '$' + 'Id' + '$' identifiers
25 lines
394 B
Plaintext
25 lines
394 B
Plaintext
#require "hbtip"
|
|
|
|
PROCEDURE Main()
|
|
|
|
LOCAL oHttp
|
|
|
|
CLS
|
|
|
|
oHttp := TIPClientHTTP():New( "http://www.google.com", .T. )
|
|
|
|
oHttp:setCookie( "test01=value01" )
|
|
|
|
IF ! oHttp:open()
|
|
? "Error: oHttp:open(): " + oHttp:lastErrorMessage()
|
|
RETURN
|
|
ENDIF
|
|
|
|
IF ! oHttp:post( "test" )
|
|
? "Error: oHttp:post(): " + oHttp:lastErrorMessage()
|
|
ENDIF
|
|
|
|
oHttp:close()
|
|
|
|
RETURN
|