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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
This has been corrected in Node commit-9b1ff070e6df8560ec4ce60d78c68c96ddf206c8, and thus this
redir.js
script will work correctly now! YAY!