curlコマンド

POSTリクエスト

 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>

ファイル送信リクエスト

 curl -F mycsv1=@C:/tmp/foo.csv http://example.com/index.php
 

参考:Downloading file from FTP using cURL

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

参考:ローカルにサーバを起動する

 nc -l localhost 8001

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

Last-modified: 2017-01-31 (火) 09:33:45