Files
harbour-core/contrib/hbtip/tests/httpcli.prg
vszakats a4a357a18b 2013-03-15 11:12 UTC+0100 Viktor Szakats (harbour syenar.net)
* /harbour/* -> /*
    * moved whole Harbour source tree one level up to
      avoid single 'harbour' top dir
2013-03-15 11:13:30 +01:00

29 lines
410 B
Plaintext

/*
* $Id$
*/
#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