Skip to main content
Skip table of contents

3.3.5 Example

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

Parameters

Example

mode

applet

appletAction

download+file

top

1

offset

0

FileIDList

InternalUpload_AppletUID

Response 1

X-FileSystemLogOpID

X-File-Content-Length

84900

X-File-Footer-Length

200

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

Parameters

Example

mode

applet

appletAction

download+file

top

1

offset

49900

FileIDList

InternalUpload_AppletUID

logOpID

returned by the previous response

Response 2

X-FileSystemLogOpID

X-File-Content-Length

35000

X-File-Footer-Length

200

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.