Skip to content

Instantly share code, notes, and snippets.

@cnosuke
Last active December 27, 2015 08:49
Show Gist options
  • Save cnosuke/7299542 to your computer and use it in GitHub Desktop.
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にログインして調べる。
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