XM Radio Player Part II : Scraping
Posted by: K. Scott Allen,
on 05 Dec 2008 |
View original | Bookmarked: 0 time(s)
Just to make sure everything was as easy as it looked in Fiddler I wrote a quick and dirty piece of throwaway code to see if I could programmatically login to XM and play a stream of music with Windows Media Player. It was ugly, but public void Can_Start_Media_Payer_With_Xm_Stream()
{
var cookies = new CookieContainer();
// step 1: get auth cookie
HttpWebRequest request = WebRequest.Create("http://xmro.xmradio.com"
+ "/xstream/login_servlet.jsp")...