HMGSCRIPT R40

Moderator: Rathinagiri

Post Reply
User avatar
Roberto Lopez
HMG Founder
Posts: 3880
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 107 times

HMGSCRIPT R40

Post by Roberto Lopez » Sun Dec 21, 2014 11:43 pm

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: 1729
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 218 times
Been thanked: 39 times
Contact:

Post by serge_girard » Mon Dec 22, 2014 10:19 am

Thanks !

Serge

User avatar
Steed
Posts: 271
Joined: Sat Dec 12, 2009 3:40 pm

Post by Steed » Mon Dec 22, 2014 9:25 pm

Gracias

User avatar
mol
Posts: 2742
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 91 times
Been thanked: 32 times
Contact:

Post by mol » Mon Dec 22, 2014 10:15 pm

Great, thanks, Roberto!

User avatar
bpd2000
Posts: 924
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 89 times
Been thanked: 27 times

Post by bpd2000 » Wed Dec 24, 2014 8:42 am

Thank you, Roberto
BPD
HMG Convert Dream into Reality

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest