#927 closed task (fixed)
file transfer API
Reported by: | Jorge | Owned by: | Jorge |
---|---|---|---|
Priority: | normal | Milestone: | TOL Packages |
Component: | Various | Version: | 2.0.1 |
Severity: | normal | Keywords: | http, ftp, file transfer, download, upload, scp |
Cc: |
Description
Implement a TOL API in order to perform file transfer operations. Consider an implementation based on http://personal1.iddeo.es/andresgarci/tclcurl/english/
Change History (16)
comment:1 Changed 15 years ago by
comment:3 Changed 15 years ago by
comment:5 Changed 15 years ago by
Cuando se le pasan parámetros correctos lo hace todo bien sin problemas, o al menos eso parece, pero si le paso un path local que no existe me devuelve omitido y si le paso una URL que no existe entonces devuelve cierto, cuando debería devolver falso en ambos casos.
En el caso de haber problemas en ejecutar la orden debería mostrar algún mensaje explicativo de porqué ha fallado, pero eso sí de forma opcional, controlada por un argumento extra Real showMsg
, porque a veces puede usarse esta herramienta sólo para saber si existe algo.
Quizás habría que ver qué otras capacidades ofrece el TclCurl para saber si existe o no una URL, leer directorios remotos, fechas de última actualización, etc.; lo cual le daría un gran valor añadido.
comment:6 Changed 15 years ago by
Component: | ASCII data files → Various |
---|---|
Owner: | changed from Jorge to Víctor de Buen Remiro |
Priority: | highest → normal |
Severity: | critical → normal |
Status: | new → accepted |
comment:7 Changed 15 years ago by
- Curl renamed to CurlApi
- Get renamed to GetUrl
- GetUrl now return a Set with the following elements:
- Rail failStatus : 0 if not fail otherwise contain the error code
- Text explain: this item only appear if failStatus != 0 and contains the error description
- if failStatus == 0 then the following items are returned:
- Real fileTime
- Real totalTime
- Real connectTime
- Real sizeDownload
- Real speedDownload
comment:8 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:9 Changed 15 years ago by
comment:10 Changed 15 years ago by
comment:11 Changed 15 years ago by
Keywords: | download upload scp added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Consider the implementation of upload operation.
comment:12 Changed 14 years ago by
Owner: | changed from Víctor de Buen Remiro to Jorge |
---|---|
Status: | reopened → assigned |
comment:13 Changed 14 years ago by
Resolution: | → remind |
---|---|
Status: | assigned → closed |
comment:14 Changed 14 years ago by
Resolution: | remind |
---|---|
Status: | closed → reopened |
No hay ninguna descripción y la API es inesxcrutable.
No hay forma de averiguar que argumentos espera ni qué cosa devuelve.
Set GetUrl( NameBlock args )
comment:15 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
(In [3575]) - puede resolver #1166
- fixes #927
- el loop de 1 a 100 del ticket #1207 no falla, al menos en linux, habria que reescribirlo asi:
Set For(1, 100, Set (Real i) { WriteLn(""<<i); Set CurlApi::GetUrl( [[ Text url = "http://packages.tol-project.org/OfficialTolArchiveNetwork/" "repository.php?tol_package_version=1.1&tol_version=v2.0.1%20b.4&" "action=ping&key=658184943" ]] )});
(In [2298]) refs #927, including package TclCurl