Permalink
Browse files

* bin6.it: now can paste a lot bigger stuff

  • Loading branch information...
l29ah committed May 10, 2012
1 parent 466115a commit 68d68f9b74c532d1e9c1b96eb4ff302d80505a01
Showing with 5 additions and 2 deletions.
  1. +5 −2 bin6.it/bin6
View
@@ -4,6 +4,9 @@ c="`tempfile`"
d="`tempfile`"
trap "rm \"$c\"; rm \"$d\"" EXIT
f="`curl -c "$c" -s http://bin6.it/ | tr -d '\n' | sed -ne 's#.*"name", "\([^"]*\)".*"value", "\([^"]*\)".*#\1=\2#p'`"
p="`urlencode`"
curl -s -b "$c" -D "$d" http://bin6.it/ -d "do_paste=yes&paste_type=0&paste_paste=$p&cust_name=&paste_pw=&$f"
{
echo -n 'do_paste=yes&paste_type=0&paste_paste='
urlencode
echo -n "&cust_name=&paste_pw=&$f"
} | curl -s -b "$c" -D "$d" http://bin6.it/ -d '@-'
sed -ne 's#^Location: \(.*\)$#http://bin6.it\1#p' "$d"

0 comments on commit 68d68f9

Please sign in to comment.