This application demonstrates primarily, the use of a Clarion Handy Tools OOP classes called HndHTTP and HNDClient. This application illustrates how to send a variety of requests to a server. It is preconfigured to interact with demo servers HNDFILSV.APP - a "Type 3", authenticating file and duty server. The HTTP_CHTSecureFileOperations() procedure can securely upload files, download files, delete files and check file existence against a CHT Browser Server application configured to accept these operations. At the server side (see HNDFILSV.APP) you have full control over which operations are allowed. The HTTP_CHTServerInsecureFileOperations() procedure illustrates sending User Custom Requests (UCR$) to HNDFILSV.APP. The two example commands provided here, demonstrate remotely running threaded example procedures in the server. At the server side (see HNDFILSV.APP) any number of threaded procedures may be inserted, each with it's own command and parameter list, by following the example embeds in Server.ProcessUserCustomRequest(). |
Count | Global Template Name | Qty | Global Template Description | |
(0001) | AACHTControlPanel(HNDTools) | 1 | © CHT AACHTControlPanel • (TIER-1) • | |
(0002) | ApplicationImagesEx(HNDTools) | 1 | © CHT ApplicationImagesEx • (TIER-1) • | |
(0003) | GlobalIncludeHNDConfigFunctions(HNDTools) | 1 | © CHT GlobalIncludeHNDConfigFunctions • (TIER-2) • | |
(0004) | HNDCMPControlPanel(HNDTools) | 1 | © CHT HNDCMPControlPanel • (TIER-2) • | |
(0005) | HandyVersionResource(HNDTools) | 1 | © CHT HandyVersionResource • (TIER-1) • | |
(0006) | INIFile(HNDTools) | 1 | © CHT INIFile • (TIER-1) • | |
(6) Global Templates • (TIER-2) | ||||
1 – Template Type: Window | ||||
– – Procedure Name: HTTP_CHTSecureFileOperations() | ||||
Count | Local Template Name | Qty | Local Template Description | |
(0007) | EmbedHTTPFunctions(HNDTools) | 1 | © CHT EmbedHTTPFunctions • (TIER-3) • | |
(0008) | EmbedWindowFunctions(HNDTools) | 1 | © CHT EmbedWindowFunctions • (TIER-2) • (CODE-TABS) • | |
(0009) | HandyApplicationIniFetch(HNDTools) | 7 | © CHT HandyApplicationIniFetch • (TIER-1) • (22) | |
(0010) | HandyApplicationIniPut(HNDTools) | 7 | © CHT HandyApplicationIniPut • (TIER-1) • (3) | |
(0011) | HandyHTTPFileDelete_EHF(HNDTools) | 1 | © CHT HandyHTTPFileDelete_EHF • (TIER-3) • | |
(0012) | HandyHTTPFileExists_EHF(HNDTools) | 1 | © CHT HandyHTTPFileExists_EHF • (TIER-3) • | |
(0013) | HandyHTTPGetFile_EHF(HNDTools) | 1 | © CHT HandyHTTPGetFile_EHF • (TIER-3) • | |
(0014) | HandyHTTPPutFile_EHF(HNDTools) | 1 | © CHT HandyHTTPPutFile_EHF • (TIER-3) • | |
(0015) | HandyTellMeControl_EWF(HNDTools) | 1 | © CHT HandyTellMeControl_EWF • (TIER-2) • (16) | |
(0016) | HandyToolBarGradient(HNDTools) | 1 | © CHT HandyToolBarGradient • (TIER-2) • | |
(0017) | HandyWindowGradient(HNDTools) | 1 | © CHT HandyWindowGradient • (TIER-2) • | |
(0018) | ProcedureImagesEx(HNDTools) | 1 | © CHT ProcedureImagesEx • (TIER-1) • (CODE-TABS) • | |
(12) Local Templates • (TIER-3) | ||||
2 – Template Type: Frame | ||||
– – Procedure Name: Main() | ||||
Count | Local Template Name | Qty | Local Template Description | |
(0019) | DateTimeDisplay(ABC) | 1 | Display the date and/or time in the current window | |
(0020) | EmbedWindowFunctions(HNDTools) | 1 | © CHT EmbedWindowFunctions • (TIER-2) • (CODE-TABS) • | |
(0021) | HandyHelpWhatsNew(HNDTools) | 1 | © CHT HandyHelpWhatsNew • (TIER-1) • (5) | |
(0022) | ProcedureImagesEx(HNDTools) | 1 | © CHT ProcedureImagesEx • (TIER-1) • (CODE-TABS) • | |
(4) Local Templates • (TIER-3) | ||||
3 – Template Type: Window | ||||
– – Procedure Name: HTTP_CHTServerInsecureFileOperations() | ||||
Count | Local Template Name | Qty | Local Template Description | |
(0023) | EmbedHNDClientHook(HNDTools) | 1 | © ©CHT EmbedHNDClientHook • (TIER-3) • | |
(0024) | EmbedWindowFunctions(HNDTools) | 1 | © CHT EmbedWindowFunctions • (TIER-2) • (CODE-TABS) • | |
(0025) | HandyApplicationIniPut(HNDTools) | 1 | © CHT HandyApplicationIniPut • (TIER-1) • (2) | |
(0026) | HandyTellMeControl_EWF(HNDTools) | 1 | © CHT HandyTellMeControl_EWF • (TIER-2) • (16) | |
(0027) | HandyToolBarGradient(HNDTools) | 1 | © CHT HandyToolBarGradient • (TIER-2) • | |
(0028) | HandyWindowGradient(HNDTools) | 1 | © CHT HandyWindowGradient • (TIER-2) • | |
(0029) | ProcedureImagesEx(HNDTools) | 1 | © CHT ProcedureImagesEx • (TIER-1) • (CODE-TABS) • | |
(7) Local Templates • (TIER-3) | ||||
4 – Template Type: Splash | ||||
– – Procedure Name: JumpStartSplash07() | ||||
Count | Local Template Name | Qty | Local Template Description | |
(0030) | AppBuildDateTimeStamp(HNDTools) | 1 | © CHT AppBuildDateTimeStamp • (TIER-2) • | |
(0031) | AppBuildNumberStamp(HNDTools) | 1 | © CHT AppBuildNumberStamp • (TIER-2) • | |
(0032) | AppCopyRightStamp(HNDTools) | 1 | © CHT AppCopyRightStamp • (TIER-2) • | |
(0033) | EmbedWindowFunctions(HNDTools) | 1 | © CHT EmbedWindowFunctions • (TIER-2) • (CODE-TABS) • | |
(0034) | HandyTellMeControl(HNDTools) | 1 | © CHT HandyTellMeControl • (TIER-2) • (2) | |
(0035) | ProcedureImagesEx(HNDTools) | 1 | © CHT ProcedureImagesEx • (TIER-1) • (CODE-TABS) • | |
(6) Local Templates • (TIER-3) | ||||