From: CBlair1986 Date: 2006-07-16T17:25:12+09:00 Subject: Finding the size of a file on web server? I'm writing a little script to help automate downloading videos off of YouTube, and I would like to know how to figure out the size of the video files I will be downloading. I've experimented briefly with Net::HTTP, but it's a little beyond me, as I haven't been able to figure it out. The URLs I'm using look like such: http://www.youtube.com/get_video?video_id=put_real_video_id_here and I'm getting the video id by a simple regexp. The trouble isn't finding the file size, per-se, but finding it *before* I download the entire thing. I don't know if this is possible or not, but any help on the subject would be greatly appreciated! Thank You