connection timeout -- reading feed
<pre><code>Stream FeedReader(string url_)
{
    var url = url_;

    var USER = "root";
    var PASS = "pass";


    //var encoded = TextToBase64(USER + ":" + PASS);

    WebRequest myWebRequest = WebRequest.Create(url);
   // myWebRequest.Method = "POST";
    //myWebRequest.ContentType = "application/x-www-form-urlencoded";
    myWebRequest.PreAuthenticate = true;
    myWebRequest.Credentials = new NetworkCredential(USER, PASS); 
    myWebRequest.Timeout = 10000;
    //WebResponse response = myWebRequest.GetResponse();
    var stream = myWebRequest.GetResponse().GetResponseStream() ;
    return stream;
}
public static List&lt;Item&gt; ParseAtom2(Stream stream)
{
    XDocument doc = XDocument.Load(stream);//("atom.xml");
    XNamespace ns = "http://www.w3.org/2005/Atom";

    var entries = doc.Root
         .Descendants(ns + "entry")
         .Select(item =&gt; new Item
         {
             FeedType = FeedType.Atom,
             Content = (string)item.Element(ns + "content").Value,
             Link = (string)item.Element(ns + "link").Attribute("href").Value,
             PublishDate = (DateTime.Parse(item.Element(ns + "published").Value)),
             Title = (string)item.Element(ns + "title").Value
         });
    return entries.ToList();
}
///Call it
List&lt;Item&gt; feed = FeedParser.Parse(FeedReader("http://local-latex-condom/feed.atom"), FeedType.Atom).ToList();
</code></pre>

<p>I run into a little problem with the source code above as I can't get passed the username/password check of the local server. I would love to learn anything from anyone of you who is willing to help me out. The error I have got after a pretty long wait (30seconds until I changed the timeout to 10secs) is 504 (timeout for connection setup). Thank you</p>
