------ art_51272_30596649.1146625348093
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
It isn't pretty and it isn't feature rich, but it does get the job done.
See also: http://rubyurl.com/HgY
#!/usr/bin/ruby
require 'uri'
require 'net/http'
result = Net::HTTP.post_form(URI.parse('http://rafb.net/paste/paste.php'),
{:text => ARGF.readlines,
:nick => 'paste user',
:lang => 'Ruby'})
result = Net::HTTP.get_response 'rubyurl.com',
'/rubyurl/remote?website_url=http://rafb.net' + result['location']
puts result['location'].sub('rubyurl/show/', '')
Sean Carley
------ art_51272_30596649.1146625348093--