simple code translation from PHP to, Ruby, Python, Java

Avg Bid (USD)
Project Budget (USD)
$30 - $250

Project Description:

I've got function, which can be called over HTTP. There are two possibilities:

1) you call -> returns a file to the caller
2) you call -> returns a line of text indicating a URL

In PHP I would do the following to handle both situations:

ad 1)
$apikey = 'xxxx';
$url = '';
$request = "$apikey&url=$url";
$result = file_get_contents($request);

ad 2)
the same as above and then the following line:
header("location: " . $popup);

I need one or more people who can translate this code to, Ruby, Python, Java and Perl.

You must also be able to demonstrate this code working. I will of course give you a real working example of a URL returning files.

Please respond with your offer and indicate to which language(s) you can translate and for which price. You must finish within one day upon acceptance.

Skills required:
.NET, ASP, Java, Python, Ruby on Rails
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

$ 40
in 1 days
$ 250
in 12 days
$ 50
in 1 days
$ 40
in 1 days
Hire zamoldar
$ 60
in 1 days
$ 30
in 1 days
$ 100
in 2 days
$ 40
in 1 days