webdav with cadaver | mixi モバイルアプリのコンテンツ配信サーバーを利用してみる。
とりあえず。マウントしたりしないでwebdavにコマンドで。
yum install cadaver
mixiからもらったメールにあるURLにアクセス。
cavader https://webdav.mixi-platform.com/xxxxxxx/
Authentication required for Mixi CDN Authorization on server `webdav.mixi-platform.com':
Username:
Password:
dav:/xxxxxx/faces/> mput *jpg [Matching... 6 matches.] Uploading f_006.jpg to `/xxxxxx/faces/f%5f006.jpg': Progress: [=============================>] 100.0% of 196 bytes succeeded. Uploading f_002.jpg to `/xxxxxx/faces/f%5f002.jpg': Progress: [=============================>] 100.0% of 196 bytes succeeded. Uploading f_005.jpg to `/xxxxxx/faces/f%5f005.jpg': Progress: [=============================>] 100.0% of 196 bytes succeeded. Uploading f_004.jpg to `/xxxxxx/faces/f%5f004.jpg': Progress: [=============================>] 100.0% of 196 bytes succeeded. Uploading f_001.jpg to `/xxxxxx/faces/f%5f001.jpg': Progress: [=============================>] 100.0% of 2009 bytes succeeded. dav:/xxxxxx/faces/> ls Listing collection `/xxxxxx/faces/': succeeded. f_001.jpg 2009 11月 24 18:03 f_002.jpg 2028 11月 24 18:03 f_003.jpg 1244 11月 24 18:03 f_004.jpg 1847 11月 24 18:03 f_005.jpg 2242 11月 24 18:03 f_006.jpg 1825 11月 24 18:03 dav:/xxxxxx/faces/>
使い方は、ftpとかとほぼ同じで。
>helpでコマンドが出ます。
以下のURLでアクセス。
http://mc.mixi.net/xxxxxx/faces/f_001.jpg
PCからはテスト環境のみ、テスト環境では、自動的に mc.test.mixi.netに変換してくれます。
便利。