Changes between Version 1 and Version 2 of FileUpload


Ignore:
Timestamp:
Apr 25, 2007, 12:17:28 PM (17 years ago)
Author:
Nicolas
Comment:

Required manual changes to automatic conversion.

Legend:

Unmodified
Added
Removed
Modified
  • FileUpload

    v1 v2  
    11= Data server protocol =
    22
    3        Core client communicate with data servers using HTTP. A data server is typically implemented using a web server together with a BOINC-supplied CGI program, '''file_upload_handler'''.
    4 === Download ===
    5  File download is done by a GET request to a URL from the FILE_INFO element. The file offset, if any, is given in '''Range:''' attribute of the HTTP header.
     3Core client communicate with data servers using HTTP. A data server is typically implemented using a web server together with a BOINC-supplied CGI program, '''file_upload_handler'''.
    64
     5== Download ==
    76
    8 === Upload ===
    9  File upload is done using POST operations to a CGI program. A security mechanism prevents unauthorized upload of large amounts of data to the server. Two RPC operations are used.
     7File download is done by a normal GET request to a URL from the FILE_INFO element. The file offset, if any, is given in '''Range:''' attribute of the HTTP header.
     8
     9== Upload ==
     10
     11File upload is done using POST operations to a CGI program. A security mechanism prevents unauthorized upload of large amounts of data to the server. Two RPC operations are used.
    1012
    1113'''1) Get file size'''
    1214
    1315The request message has the form:
    14 
    1516
    1617{{{
     
    2223</data_server_request>
    2324}}}
    24   The reply message has the form:
    2525
     26The reply message has the form:
    2627
    2728{{{
     
    3233</data_server_reply>
    3334}}}
    34  Status is
    3535
    36  ''''''::
    37         Success.  Nbytes is 0 if the file doesn't exist.
     36Status is:
     37 (empty)::
     38        Success. `Nbytes` is 0 if the file doesn't exist.
    3839 '''1'''::
    3940        Transient error. The client should try another data server, or try this one later.
    4041 '''-1'''::
    41         Permanent error.  The client should give up on the result.
    42 In the error cases, the <file_size> element is omitted and the <message> element gives an explanation.
     42        Permanent error. The client should give up on the result.
     43In the error cases, the `<file_size>` element is omitted and the <message> element gives an explanation.
    4344
    4445'''2) Upload file'''
    4546
    4647Request message format:
    47 
    4848
    4949{{{
     
    6666(no closing tags)
    6767}}}
    68  The <file_info> element is the exact text sent from the scheduling server to the client. It includes a signature based on the project's file upload authentication key pair. <nbytes> is the size of the file. <md5_cksum> is MD5 of the entire file. <offset> is the offset within the file.
     68
     69The <file_info> element is the exact text sent from the scheduling server to the client. It includes a signature based on the project's file upload authentication key pair. <nbytes> is the size of the file. <md5_cksum> is MD5 of the entire file. <offset> is the offset within the file.
    6970
    7071Reply message format:
    71 
    7272
    7373{{{
     
    7777</data_server_reply>
    7878}}}
    79  Status is
    8079
    81  ''''''::
     80Status is:
     81
     82 (empty)::
    8283        success
    8384 '''1'''::