# Download through redirecting php-page

**URL:** <https://www.ruby-forum.com/t/download-through-redirecting-php-page/186505>\
**Category:** Ruby\
**Created:** [April 8, 2010, 3:17am UTC](https://www.ruby-forum.com/t/download-through-redirecting-php-page/186505 "2010-04-08T03:17:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![opet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f4b2a3/32.png) [@opet](https://www.ruby-forum.com/u/opet)\
**Post date:** [April 8, 2010, 3:17am UTC](https://www.ruby-forum.com/t/download-through-redirecting-php-page/186505/1 "2010-04-08T03:17:33Z")

</div>

Hey,

I’m rather new to Ruby, and I’ve been googling for a couple of hours  
without being even close to a solution that works.

I have a bunch of links that links to a “download.php/xxxxx/xxxxxxxxxx/”  
address. When clicked in the browser, the files downloads normally, but  
when I’m trying to do it through Ruby the only thing I get are errors.

I’ve been trying with the open command, but it didn’t work for some  
reason.

Any suggestions?

Thanks in advance,

Ã˜yvind
