Question: I'm using PHP's CURL MULTI to download an array of resources in parallel, and I want to get the last effective URL from *each* of the resources (not just the last one).

Basically, I'm looking for:

```
curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);

```

for CURL MULTI, something like:

```
curl_multi_getinfo($ch[$key], CURLINFO_EFFECTIVE_URL);

```

Any ideas?

Answer: 
Try Railscasts. It has an episode on [Rubber](http://railscasts.com/episodes?utf8=%E2%9C%93&search=rubber).
<http://www.ginzametrics.com/deploy-rails-app-to-ec2-with-rubber.html>

<http://ramenlab.wordpress.com/2011/06/24/deploying-your-rails-app-to-aws-ec2-using-rubber/>