PC Review


Reply
Thread Tools Rate Thread

Check if mms:// or rtsp:// url exists (url not broken)

 
 
Noulouk
Guest
Posts: n/a
 
      11th Aug 2005
Hello,

I need to verify if mms:// or rtsp:// urls exists.

I do like this for http:// :

public static bool GetPage(String url)
{
try
{
// Creates an HttpWebRequest for the specified URL.
HttpWebRequest myHttpWebRequest =
(HttpWebRequest)WebRequest.Create(url);
// Sends the HttpWebRequest and waits for a
response.
HttpWebResponse myHttpWebResponse =
(HttpWebResponse)myHttpWebRequest.GetResponse();
if (myHttpWebResponse.StatusCode ==
HttpStatusCode.OK)
return true;

// Releases the resources of the response.
myHttpWebResponse.Close();

}
catch(WebException e)
{
Console.WriteLine("\r\nWebException Raised. The
following error occured : {0}",e.Status);
}
catch(Exception e)
{
Console.WriteLine("\nThe following Exception was raised
: {0}",e.Message);
}
return false;
}

If I replace mms:// by http:// , I can check the url.
But the same code doesn't work for rtsp protocols.

I apreciate any help to learn how to request a mms:// and rtsp://
file.(just need to check if the url is not broken)

Thanks in advance for your help.




*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exists() function seems broken.. Any help? BrianDP Microsoft Access Form Coding 12 11th Nov 2010 08:08 PM
Exists() function seems broken.. Any help? BrianDP Microsoft Access Form Coding 0 8th Nov 2010 08:43 PM
Tool to schedule RTSP downloads and convert to MP3? Or bypass RTSP port? dane Freeware 0 16th Feb 2006 02:33 AM
Check if mms:// or rtsp:// url exists Noulouk Microsoft C# .NET 1 9th Aug 2005 08:11 PM
Check url exists Pete Microsoft ASP .NET 1 29th Nov 2004 04:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:30 AM.