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
HMGSCRIPT R40
Moderator: Rathinagiri
- Roberto Lopez
- HMG Founder
- Posts: 4012
- Joined: Wed Jul 30, 2008 6:43 pm
HMGSCRIPT R40
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- serge_girard
- Posts: 3222
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact: