Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3274286
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:01:17+00:00 2026-05-17T19:01:17+00:00

I am currently working on an implementation of an application for Windows Phone 7

  • 0

I am currently working on an implementation of an application for Windows Phone 7 that should retrieve the SHOUTcast stream (inspired by this question). The stream location is represented by an IP address and a port.

Here is an example of a SHOUTcast stream URL:
http://78.159.104.183:80

I am trying to make a HttpWebRequest to get the data from the stream:

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://78.159.104.183:80");

Once the request is initialized, I am trying to get a response via an asynchronous callback:

request.BeginGetResponse(new AsyncCallback(GetShoutAsync), request);

GetShoutAsync looks like this:

void GetShoutAsync(IAsyncResult res)
{
     HttpWebRequest request = (HttpWebRequest)res.AsyncState;
     HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(res);
}

When I build the project and run it, it gets to the point where the request is initialized, but the callback is never called.

I noticed an interesting thing – SHOUTcast implements a technique by which when the user tries to navigate to the stream URL, the server detects the user agent and if it is a web browser, it will simply show a HTML page instead of passing application/octet-stream content.

You can still receive the stream directly if you use a slash and semicolon at the end of the stream URL: http://78.159.104.183:80/;

However, in my application, I cannot get the response – the callback seems to never be reached. I tried faking the user agent by passing it directly to the HttpWebRequest:

request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.9.0.2) Gecko/2008092313 Ubuntu/9.25 (jaunty) Firefox/3.8";

This works for the simple stream URL (without the semicolon at the end) to get the HTML contents, but I cannot get the binary stream.

Anyone ever encountered something like this or knows what’s causing it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:01:17+00:00Added an answer on May 17, 2026 at 7:01 pm

    I have no idea if this would work for you but I had the same problem,

    and explicitly setting

    request.AllowReadStreamBuffering = false;
    request.Method = “GET”;

    seemed to whatever reason get my callback to fire…

    I’m not sure why.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am working on a multi-process desktop application on Windows. This application will
I'm currently working on Mangler's Android implementation. I have a java class that looks
I am currently working on one android application which has C2DM implementation and I
I'm currently working with an online application that requires multiple screens/steps in order to
I currently working on a application that use Entity Framework 4.1 (code first) and
I'm currently working on an Iphone application that has 3 text fields. If I
I am currently working on an iPhone application that takes in data from the
I’m currently working on an web application that sends emails. Actions taken place by
I'm currently working on a web service implementation to a combined web/desktop application (ie.
I am currently working on an application for a low-memory platform that requires an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.