Browse Source

Update devtools.md

Bastien Sevajol 6 years ago
parent
commit
2e46094aec
No account linked to committer's email
1 changed files with 7 additions and 1 deletions
  1. 7 1
      doc/devtools.md

+ 7 - 1
doc/devtools.md View File

@@ -2,10 +2,16 @@
2 2
 
3 3
 # Make request in CLI
4 4
 
5
-## upload a file
5
+## Upload a file
6
+
7
+With httpie
6 8
 
7 9
     http --timeout 99999999999999 -f POST  http://127.0.0.1:8080/workspaces/1/folders/2/files label='test3' file_data@~/Téléchargements/fr_windows_8_1_x86_dvd_2707457.iso 'Cookie: authtkt="ec5249770f9709d6c5aec5caf458c0875ab8eeefadmin%40admin.admin!"'
8 10
 
11
+With curl
12
+
13
+    curl 'http://127.0.0.1:8080/workspaces/1/folders/2/files' -H 'Host: 127.0.0.1:8080' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3' --compressed -H 'Referer: http://127.0.0.1:8080/workspaces/1/folders/2' -H 'Cookie: authtkt="ec5249770f9709d6c5aec5caf458c0875ab8eeefadmin%40admin.admin!"' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1'
14
+
9 15
 # Check third party licences
10 16
 
11 17
 Install `yolk3k` pip package: