GETing files.

Dan Morphis dan at milkcarton.com
Wed Feb 18 12:29:25 EST 2015


Try:
curl http://127.0.10.251:75*6*7/genexis.cfg

The CWMP lives on port 7547, the file server lives on 7567

-dan

On Wed, Feb 18, 2015 at 2:04 AM, Dr Josef Karthauser <joe at truespeed.com>
wrote:

> It looks like I can upload files through the REST API, and see a list of
> files that have been uploaded, but I don’t appear to be able to ‘GET’ a
> file subsequently.
>
> Is this a hole in the API, or am I doing it wrong? (The Web interface
> doesn’t have it, so I suspect that it’s missing).
>
>
> # curl http://127.0.10.251:7557/files
> [
> {"_id":"54ca95255b07909b09c79b7c","filename":"drgos-tundra-1.13.2-R.img","contentType":"binary/octet-stream","length":10740693,"chunkSize":261120,"uploadDate":"2015-01-29T20:16:37.306Z","aliases":null,"metadata":{"fileType":"1
> Firmware Upgrade
> Image","oui":"000F5D","productClass":"Tundra","version":"drgos-tundra-1.13.2-R"},"md5":"fb4b678a9d86e74cc1116fb4c037f718"},
> {"_id":"54d8c9ed0e5748e8d9abbcdb","filename":"drgos-tundra-1.13.0-R.img","contentType":"binary/octet-stream","length":10576493,"chunkSize":261120,"uploadDate":"2015-02-09T14:53:34.501Z","aliases":null,"metadata":{"fileType":"1
> Firmware Upgrade
> Image","oui":"000F5D","productClass":"Tundra","version":"drgos-tundra-1.13.0-R"},"md5":"62f1a15be8e5589eb3bd2755a68ecbea"},
> {"_id":"54e1be606f3884cd6e5468b5","filename":"genexis.cfg","contentType":"binary/octet-stream","length":1013,"chunkSize":261120,"uploadDate":"2015-02-16T09:54:40.018Z","aliases":null,"metadata":{"fileType":"1
> Firmware Upgrade
> Image","oui":"000F5D","productClass":"Tundra","version":"Config"},"md5":"b0376e8809a0bde519dd3ecaf8a5a65e"}
> ]
> root at tr069:~ # curl http://127.0.10.251:7557/files/genexis.cfg
> 405 Method Not Allowed
>
>
> Joe
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150218/e2dd9e94/attachment.html>


More information about the Users mailing list