【curl】【Windows】統合Windows認証しながら、POSTパラメータとファイルをアップロードする

curl.exe --ntlm --user userId:password --connect-timeout 30 --max-time 10800 -XPOST -F "uploadFile=@C:tempdummyFile.txt" -F "ParameterPost=hoge" "https://localhost/app?ParameterGet=hogehoge"
  • 統合Windows認証のためのユーザーIDとPWを指定
    • –ntlm –user userId:password
  • 接続タイムアウトを30秒
    • –connect-timeout 30
  • 最大処理時間を3時間(60秒*60分*3時間)
    • –max-time 10800
  • アップロードファイルを指定
    • -XPOST -F “uploadFile=@C:tempdummyFile.txt”
  • POSTパラメータを指定
    • -F “ParameterPost=hoge”
  • URLを指定(GET含む)
    • “https://localhost/app?ParameterGet=hogehoge”