public static void Test_PBUriBuilder_01(string url) { Trace.WriteLine("url \"{0}\"", url); PBUriBuilder uriBuilder = new PBUriBuilder(url); //Trace.WriteLine("port {0}", uriBuilder.Port); //uriBuilder.Port = -1; string name = "ss"; Trace.WriteLine("remove query value \"{0}\"", name); uriBuilder.RemoveQueryValue(name); Trace.WriteLine("url \"{0}\"", uriBuilder.ToString()); }
//public static WebDataPageManager<int, Ebookdz_HeaderPage, Ebookdz_PostHeader> HeaderWebDataPageManager { get { return __headerWebDataPageManager; } } //public static WebHeaderDetailManager<int, Ebookdz_HeaderPage, Ebookdz_PostHeader, int, Ebookdz_PostDetail> WebHeaderDetailManager { get { return __webHeaderDetailManager; } } //public static WebDataManager<int, Ebookdz_PostDetail> DetailWebDataManager { get { return __detailWebDataManager; } } public static string GetUrl(string url) { if (url != null) { // remove "s" value in query // http://www.ebookdz.com/forum/forumdisplay.php?f=1&s=1fdf76d35a57d09aa11e75ff6f0d9985 PBUriBuilder uriBuilder = new PBUriBuilder(url); uriBuilder.RemoveQueryValue("s"); url = uriBuilder.ToString(); } return url; }