You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
120 B

  1. #
  2. url="$1"
  3. file="$2"
  4. sed -e 's/$/%0a/g' $file > $file.post
  5. curl -s -X POST "$url" --data @$file.post
  6. exit $?;
  7. true;