Skip to content

HTTP Request Examples

timote edited this page May 10, 2015 · 1 revision

HTTP Request Examples

You can download the cUrl program for various operation systems from here.. You first need to start the application in a command prompt with command: node server.js . Then open another command prompt and try to use the following curl-commands.

##1. Adding file to an existing share

curl "https://localhost:8090/set_files" -H "Cookie: FIOSESSIONID=F83F8844B29F8B7F4B134B6873913609; __utmt=1; __utma=52959295.1073445321.1423030561.1423812137.1423823493.13; __utmb=52959295.5.10.1423823493; __utmc=52959295; __utmz=52959295.1423753610.10.2.utmcsr=ankurbansal.folders.io|utmccn=(referral)|utmcmd=referral|utmcct=/" --data "shareId=c2b3e127-b350-4745-9f1d-2a9964c49484&allowOfflineStorage=true&allowUploads=false&parent=0&data="%"5B"%"7B"%"22fi"%"22"%"3A1"%"2C"%"22d"%"22"%"3Afalse"%"2C"%"22n"%"22"%"3A"%"2245.jpg"%"22"%"2C"%"22p"%"22"%"3Anull"%"2C"%"22s"%"22"%"3A74098"%"2C"%"22l"%"22"%"3A"%"222014-10-15T05"%"3A40"%"3A59.000Z"%"22"%"2C"%"22t"%"22"%"3A"%"22image"%"2Fjpeg"%"22"%"2C"%"22c"%"22"%"3A"%"5B"%"5D"%"2C"%"22o"%"22"%"3Afalse"%"7D"%"5D"

##2. Request info of an existing share

curl "https://localhost:8090/get_share?shareId=e508d49c-847b-4398-8908-b60e46bb39b0&offline=0&parent=0&gw=0&_=1423824798767"

##3. Browse a share

curl http://localhost:8090/dir/testUUID

##4. Download a file from share

curl "https://localhost:8090/file/ab649440-8264-4b4f-9faf-855a360133d7"

Clone this wiki locally