HMGSCRIPT R40
Posted: 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
- 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