document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. on open location this_URL
  2.     set USER_PASS to "user:pass"
  3.     set TRANSMISSION_HOST to "addr:port"
  4.     do shell script "LINK=\'" & this_URL & "\'; SESSID=$(curl --silent --anyauth --user " & USER_PASS & " \'http://" & TRANSMISSION_HOST & "/transmission/rpc\' | sed \'s/.*<code>//g;s/<\\\\/code>.*//g\'); curl --silent --anyauth --user " & USER_PASS & " --header \\"$SESSID\\" \\"http://" & TRANSMISSION_HOST & "/transmission/rpc\\" -d \\"{\\\\\\"method\\\\\\":\\\\\\"torrent-add\\\\\\",\\\\\\"arguments\\\\\\":{\\\\\\"paused\\\\\\":\\\\\\"false\\\\\\",\\\\\\"filename\\\\\\":\\\\\\"${LINK}\\\\\\"}}\\""
  5. end open location
');