Your code is probably fine for most sites. However this site looks like it is checking and running some javascript on the page before redirecting it (possibly to try and stop people from scraping it). So I'm not sure this is going to work, unless possibly you can set a cookie that they are setting, or emulate the response that they are expecting (I'm not sure if you have access to anything that could run the javascript to get around it as well).
Update: There is a bit of challenge/response in there looking at it, which throws a question (like some numbers that need adding up). I guess you could possibly look at scraping the original page, do the calculations and post a form back with the answer. I'm not sure I want to post a solution to this though, as it looks like the code is there to exactly try and stop this. Plus they could easily change the challenge question/format. So somehow running javascript would possibly be the best way if possible.