* curlコマンド [#z28c8a05]

** POSTリクエスト [#fa25e659]

 curl --data 'name=taro&age=12' http://localhost:8001/

 curl -F 'name=yamada taro' -F 'age=12' http://localhost:8001/

↓

 <form method="post" action="http://localhost:8001/">
 <input type="hidden" name="name" value="yamada taro">
 <input type="hidden" name="age" value="12">
 <input type="submit">
 </form>

** ファイル送信リクエスト [#a91a9a4d]
 curl -F mycsv1=@C:/tmp/foo.csv http://example.com/index.php
 
** 参考:Downloading file from FTP using cURL [#p93468c0]

*** 参考 [#f23ab987]

http://superuser.com/questions/265062/downloading-file-from-ftp-using-curl

** 参考:ローカルにサーバを起動する [#kad6170b]
 nc -l localhost 8001

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS