Skip to content

Instantly share code, notes, and snippets.

@TooTallNate
Created August 17, 2010 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TooTallNate/531588 to your computer and use it in GitHub Desktop.
Save TooTallNate/531588 to your computer and use it in GitHub Desktop.
An attempt to use the iTunes radio playlist redirecting service with NodeJS.
var http = require('http');
var r = http.createClient(80, 'pri.kts-af.net');
var request = r.request('GET', '/redir/index.pls?esid=cb07887ce881c6164c3ae52a58c55361&url_no=1&client_id=7&uid=68efed4d03ec7e45fd3978262c107180&clicksrc=xml', {
'Host': 'pri.kts-af.net'
});
request.on('response', function (response) {
console.log('STATUS: ' + response.statusCode);
});
request.end();
@TooTallNate
Copy link
Author

This has been corrected in Node commit-9b1ff070e6df8560ec4ce60d78c68c96ddf206c8, and thus this redir.js script will work correctly now! YAY!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment