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 cURLhttp://superuser.com/questions/265062/downloading-file-from-ftp-using-curl 参考:ローカルにサーバを起動するnc -l localhost 8001 |
|