HMGSCRIPT R40

Moderator: Rathinagiri

Post Reply
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

HMGSCRIPT R40

Post 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
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
serge_girard
Posts: 3158
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HMGSCRIPT R40

Post by serge_girard »

Thanks !

Serge
There's nothing you can do that can't be done...
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: HMGSCRIPT R40

Post by Steed »

Gracias
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: HMGSCRIPT R40

Post by bpd2000 »

Thank you, Roberto
BPD
Convert Dream into Reality through HMG
Post Reply