Created
August 17, 2010 19:26
-
-
Save TooTallNate/531588 to your computer and use it in GitHub Desktop.
An attempt to use the iTunes radio playlist redirecting service with NodeJS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has been corrected in Node commit-9b1ff070e6df8560ec4ce60d78c68c96ddf206c8, and thus this
redir.js
script will work correctly now! YAY!