CPPUNIT_ASSERT( test.GetScheme() == wxT("file") );
CPPUNIT_ASSERT( test.GetPath() == wxT("%22myf%22ile.txt") );
+ // these could be put under a named registry since they take some
+ // time to complete
+#if 0
// Test problem urls (reported not to work some time ago by a user...)
for ( size_t i = 0; i < WXSIZEOF(pszProblemUrls); ++i )
{
delete is;
}
+#endif
}
#if wxUSE_PROTOCOL_HTTP
{
wxURL url(wxT("http://www.asite.com/index.html"));
url.SetProxy(wxT("pserv:3122"));
+
+ wxURL::SetDefaultProxy(wxT("fol.singnet.com.sg:8080"));
+ wxURL url2(wxT("http://server-name/path/to/file?query_data=value"));
+ wxInputStream *data = url2.GetInputStream();
+ CPPUNIT_ASSERT(data != NULL);
}
#endif // wxUSE_PROTOCOL_HTTP
#endif // TEST_URL
-