HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.google.com");\r
HttpWebResponse res = (HttpWebResponse) req.GetResponse (); \r
\r
+#if FOUND_SOME_OTHER_URL
+ // URL is no longer found, disabled the test until a more reliable URL is found :P
//WriteServicePoint ("google after getting a response", google);\r
ServicePoint google2 = ServicePointManager.FindServicePoint (new Uri ("http://www.google.com/dilbert.html"));\r
Assert.AreEqual (google, google2, "#equals");\r
res.Close ();\r
+#endif
\r
// in both instances property CurrentConnections is 0 according to ms.net.\r
// let's see what it says when we do async operations...\r
//Console.WriteLine ("ContentLength: " + res2.ContentLength);\r
res2.Close ();\r
\r
- \r
+ ServicePoint sp2;
+#if FOUND_SOME_OTHER_URL
// unless of course some buffering is taking place.. let's check\r
Uri uri2 = new Uri ("http://freedesktop.org/Software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz");\r
- ServicePoint sp2 = ServicePointManager.FindServicePoint (uri2);\r
+ sp2 = ServicePointManager.FindServicePoint (uri2);\r
req2 = (HttpWebRequest) WebRequest.Create (uri2);\r
async = req2.BeginGetResponse (null, null);\r
//WriteServicePoint ("Large file: after async BeginGetResponse", sp2);\r
// and so it shows\r
//Console.WriteLine ("ContentLength: " + res2.ContentLength);\r
res2.Close ();\r
+#endif
\r
\r
// what's the limit of the cache?\r
\r
[Test]\r
[Category ("InetAccess")]\r
+ [Category ("AndroidNotWorking")] // #A1 fails
public void EndPointBind ()\r
{\r
Uri uri = new Uri ("http://www.go-mono.com/");\r
};\r
req.GetResponse ().Close ();\r
\r
- Assert.IsTrue (called);\r
+ Assert.IsTrue (called, "#A1");\r
\r
req = (HttpWebRequest) WebRequest.Create (uri);\r
called = false;\r
};\r
req.GetResponse ().Close ();\r
\r
- Assert.IsTrue (called);\r
+ Assert.IsTrue (called, "#A2");\r
}\r
\r
public static void GetRequestStreamCallback (IAsyncResult asynchronousResult)\r