I found a solution: defining a function to simulate http get public static string HttpGet(string Url, string postDataStr) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url + (postDataStr == "" ? "" : "?") + postDataStr); request.Method = "GET"; request.ContentType = "text/html;charset=UTF-8";
HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream myResponseStream = response.GetResponseStream(); StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("utf-8")); string retString = myStreamReader.ReadToEnd(); myStreamReader.Close(); myResponseStream.Close(); return retString; } and then call above function: string ret = HttpRequestHelper.HttpGet(MapAgentURLFromWebBOSSite, "OPERATION=GETSESSIONTIMEOUT&VERSION=2.2&Username=" + UserName + "&Password=" + Password + "&SESSION=" + MapSessionID + "&LOCALE=en"); -- View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-get-timeout-setting-of-session-by-using-Maestro-SDK-tp5241379p5241698.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users