Navigation Menu

Skip to content

Commit

Permalink
* bin6.it: now can paste a lot bigger stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
l29ah committed May 10, 2012
1 parent 466115a commit 68d68f9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin6.it/bin6
Expand Up @@ -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.