Files
harbour-core/contrib/hbtip/tests/httpcli.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

26 lines
395 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