well, this website relies heavily on AJAX for its content, so getting just the source code (what you are doing with cUrl or file_get_contents will only give you an empty page.
You have 2 choices to get the "real" content (the player presentation) :
- understand the format and logic of those Ajax call and implement them. The AJAX call in your exemple can be done with cUrl
curl 'http://raindrops.in/rest/ainvvy/527a727a4251df44558b4567' -H 'Cookie: __utma=161727679.1871000365.1388669242.1388669242.1390391663.2; __utmb=161727679.3.10.1390391663; __utmc=161727679; __utmz=161727679.1390391663.2.2.utmcsr=stackoverflow.com|utmccn=(referral)|utmcmd=referral|utmcct=/questions/20967366/not-able-to-get-the-contents-of-the-url' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Accept-Language: en-US,en;q=0.8,fr-FR;q=0.6,fr;q=0.4' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36' -H 'Accept: application/json, text/javascript, /; q=0.01' -H 'Referer: http://raindrops.in/ainvvy/view/527a727a4251df44558b4567' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' --compressed)
- or use a browser to actually interpret javascript and make the AJAX call. For this option, you can use Phantomjs http://phantomjs.org/ which is great to implement automation of browser behavior (this is a browser, a webkit implementation, that you can script in javascript).