Page 1 of 1

HMGSCRIPT R40

Posted: Sun Dec 21, 2014 11:43 pm
by Roberto Lopez
New in R40

- dblogin(), dblogout(), dbappend(), dbdelete() and dbmodify() functions were removed from the
library and replaced with the httpRequest() function.

- New httpRequest() function (it handles now, all communications with server):

Syntax:

httpRequest( serverProcName , parameters... );

The cSessionId global variable is passed automatically on every call, without
need of explicity include as parameter.

Example:

aRecordSet = httpRequest ( '/cgi-bin/myapp.cgi' , 'query' ,
[ 'code' , 'first' , 'last' , 'birth' , 'married' ] ,
'code<=10 .or. code>=1000' , '' );

When an array parameter type is found, if the serverProcName extension is cgi, it is
harbour-encoded prior to send it to the server. If not, JSON format is used. This
makes HMGSCRIPT independent of server technology used.

- All server procedures are contained now in an unique Harbour app (myapp.prg/myapp.cgi).
A parameter is used now to determine which action will be done. Table name is not used
as a parameter anymore, to enforce security (it is hard-coded inside app.).

- Some other little changes.

Download: http://www.sourceforge.net/projects/hmgscript

Re: HMGSCRIPT R40

Posted: Mon Dec 22, 2014 10:19 am
by serge_girard
Thanks !

Serge

Re: HMGSCRIPT R40

Posted: Mon Dec 22, 2014 9:25 pm
by Steed
Gracias

Re: HMGSCRIPT R40

Posted: Mon Dec 22, 2014 10:15 pm
by mol
Great, thanks, Roberto!

Re: HMGSCRIPT R40

Posted: Wed Dec 24, 2014 8:42 am
by bpd2000
Thank you, Roberto