Changes between Version 40 and Version 41 of ESGFGetCredentials


Ignore:
Timestamp:
Dec 23, 2014 3:49:34 PM (7 years ago)
Author:
terryk
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ESGFGetCredentials

    v40 v41  
    123123}}}
    124124
     125== cURL ==
     126
     1271. Retrieve ESGF credentials in current directory
     128{{{
     129java -jar getESGFCredentials-0.1.jar --openid <your_openid> --password <your_password> --credentials --cacertspem --output .
     130}}}
     131
     1322. Use curl to download the file[[BR]]
     133   example_file: http://wdcc-esgf.dkrz.de:8080/ESGF/fileServer/cmip5/output1/IPSL/IPSL-CM5A-LR/esmrcp85/6hr/atmos/6hrPlev/r1i1p1/v20120114/ta/ta_6hrPlev_IPSL-CM5A-LR_esmrcp85_r1i1p1_2016010103-2025123121.nc
     134{{{
     135curl -L -C - --cookie-jar curl-cookie --cookie curl-cookie --cert credentials.pem --cacert ca-certificates.pem -O http://wdcc-esgf.dkrz.de:8080/ESGF/fileServer/cmip5/output1/IPSL/IPSL-CM5A-LR/esmrcp85/6hr/atmos/6hrPlev/r1i1p1/v20120114/ta/ta_6hrPlev_IPSL-CM5A-LR_esmrcp85_r1i1p1_2016010103-2025123121.nc
     136}}}
     137
     138   * Explanation of cURL options:
     139     * '''-L''' (`L/--location`) If the server reports that the requested page has a different location let curl attempt to reattempt the get on the new place
     140     * '''-C <offset>''' (`-C/--continue-at`) to ontinue/Resume a previous file transfer at the given offset. "-C -" is used to tell curl to automatically find out where/how to resume the transfer.
     141     * '''--cookie-jar <cookie-name>''' (`-c/--cookie-jar`) to write cookies (cookies are generated after the handshake)
     142     * '''--cookie <cookie-name>''' (`-b/--cookie`) to load cookies from file
     143     * '''--cert <certfile>''' (`-E/--cert`) to use the specified certificate file when getting a file with HTTPS. The certificate must be in PEM format. Certificate file must content user certificate and private key.
     144     * '''--cacert <cacertfile>'''  to use the specified certificate file to verify the peer. The file may contain multiple CA certificates. The certificate(s) must be in PEM format.
     145     * '''-O''' (`-O/--remote-name`) to write output to a local file named like the remote file we get. You can use (`-o/--output` <file-name> option) to specify the name of the file.
     146
     147     
     148     
     149
     150
     151    If this option is used twice, the second will again disable location following.
     152
     153
    125154
    126155== WGET (OPENSSL) ==