Skip to content

Instantly share code, notes, and snippets.

@tcosentino
Created July 30, 2014 18:43
Show Gist options
  • Save tcosentino/de0f0d96b0c72ef8d381 to your computer and use it in GitHub Desktop.
Save tcosentino/de0f0d96b0c72ef8d381 to your computer and use it in GitHub Desktop.
string opLicTotalCount = string.Format(@"http://{0}/mandell-mvc/agent/gisrvGetOperatorLicenseCount?license={1}&sessionid={2}",
server.GIServerString, version.LicenseKey, "12344321");
string travLicTotalCount = string.Format(@"http://{0}/mandell-mvc/agent/gisrvGetTravelerLicenseCount?license={1}&sessionid={2}",
server.GIServerString, version.LicenseKey, "12344321");
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(opLicTotalCount);
httpWebRequest.Method = WebRequestMethods.Http.Get;
httpWebRequest.Accept = "application/json";
WebResponse response = httpWebRequest.GetResponse();
var sr = new StreamReader(response.GetResponseStream());
string responseJson = sr.ReadToEnd();
var opLicTotalCountObj = js.Deserialize<GiLicenseCountResult>(responseJson);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment