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 myHttpWebReques t =
(HttpWebRequest )WebRequest.Cre ate(url);
// Sends the HttpWebRequest and waits for a
response.
HttpWebResponse myHttpWebRespon se =
(HttpWebRespons e)myHttpWebRequ est.GetResponse ();
if (myHttpWebRespo nse.StatusCode ==
HttpStatusCode. OK)
return true;
// Releases the resources of the response.
myHttpWebRespon se.Close();
}
catch(WebExcept ion e)
{
Console.WriteLi ne("\r\nWebExce ption Raised. The
following error occured : {0}",e.Status) ;
}
catch(Exception e)
{
Console.WriteLi ne("\nThe following Exception was raised
: {0}",e.Message) ;
}
return false;
}
But the same code doesn't work for mms or rtsp protocols.
Thanks in advance for your help.
*** Sent via Developersdex http://www.developersdex.com ***