Last active
December 27, 2015 08:49
-
-
Save cnosuke/7299542 to your computer and use it in GitHub Desktop.
bitcasaにHTTP/HTTPSで任意のファイルをぶっ込む。
例はhttp://lab.cnosuke.com/example.pngをダウンロードさせている。
URLencodedな形でURLを指定して、sessionid=に自分のセッションIDをぶっ込めばOK。
セッションIDはmy.bitcasa.comにログインして調べる。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'https://my.bitcasa.com/uploader/download-to-bitcasa' \ | |
-X POST \ | |
-d 'file=http%3A%2F%2Flab.cnosuke.com%2Fexample.png&cookies=%5B%5D'\ | |
-H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8"\ | |
-H "X_REQUESTED_WITH: XMLHttpRequest" --cookie "sessionid=YOUR_SESSION_ID"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment