Waiting for engine...
Skip to main content

Example

Download a file that has a size of 84700 bytes. The server uses ID encryption.

Request 1

GET http(s)://server url/DownloadEx.aspx

ParametersExample
modeapplet
appletActiondownload+file
top1
offset0
FileIDList
InternalUpload_AppletUID

Response 1

X-FileSystemLogOpID
X-File-Content-Length84900
X-File-Footer-Length200

If HTTP/HTTPS connection was closed due to offline (for example) or client action, the download is interrupted.

To resume it, the client application must detect the size of downloaded portion of the file (for example 49900) and must send the second request.

Request 2

GET http(s)://server url/DownloadEx.aspx

ParametersExample
modeapplet
appletActiondownload+file
top1
offset49900
FileIDList
InternalUpload_AppletUID
logOpIDreturned by the previous response

Response 2

X-FileSystemLogOpID
X-File-Content-Length35000
X-File-Footer-Length200

After a file has been downloaded, the client application must truncate its content by deleting last [X-File-Footer-Length] bytes.

On this Page