Kad Kerforn wrote:
> If the above link is a URI representing the file ...  no, it's a
> request to anotherdomain.com for getting the resource with ID 579633
> 
> when I use this url in a browser : "http://www.anotherdomain.com/
> resource/download/579633"
> then the file (a pdf file in this case) is automatically downloaded
> I guess the site is a RoR site, and my request is processed  and the
> file is sent using  send_file
> 
> so, I cannot use this url has a file url directly....   GET  "http://
> www.anotherdomain.com/resource/download/579633"

Unless it is possible to get the exact url that represents the other 
resource you're trying to download I can't see how you'll save the 
resource locally. Is this a service you have a correspondance with? Look 
into how to link directly, maybe contact the site maintainer.

Perhaps somebody else will have a good method for capturing though.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to