Good Day Everyone!
Does anyone have a sample code they can share where a website is queried and response saved?
Thank you in advance for your help!
Sincerely,
Query website save response
Re: Query website save response
I use this for quick access. Must link in hbtip and call InetInit() somewhere in your code.
Robb
Code: Select all
FUNCTION GETURL( cURL, nBytes )
LOCAL cRetValue := ""
hb_default( @nBytes, 00 )
WITH OBJECT TIPClientHTTP():new( cURL )
IF :open()
:Get()
IF nBytes == 00
cRetValue := :readall()
ELSE
cRetValue := :read( nBytes )
ENDIF
ENDIF
:close()
END
RETURN ( cRetValue )
- cdmmaui
- Posts: 653
- Joined: Fri Oct 28, 2005 9:53 am
- Location: The Woodlands - Dallas - Scottsdale - London
- Contact:
Re: Query website save response
Hi Robb,
Thank you!
Thank you!