Skip to content

Instantly share code, notes, and snippets.

@TooTallNate

TooTallNate/redir.js

Created Aug 17, 2010
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@TooTallNate TooTallNate commented Oct 19, 2010

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
You can’t perform that action at this time.