From: Keith Langdon Date: 2008-10-01T01:02:26+09:00 Subject: Re: rest-client get header only Thanks Michael, tried to use the :method => :head, but couldn't get it to fly. Sure there is a way of using that method if you know your way round ruby better than I. Cheers for the suggestion. > > The ruby standard library has net/http, with which you can do: > > require 'net/http' > > conn = Net::HTTP.start('www.whatever.com') > conn.head('/').each_header do |k,v| > puts "#{k} = #{v}" > end > Thanks Mark that cracked it! Now able to get the filename, and the actual data, so I can save to disk, rather than using a default name for the data as I was before. Many thanks, Keith. -- Posted via http://www.ruby-forum.com/.