Esempio n. 1
0
        private void ProcessRequest(HttpProxy.Session session)
        {
            var url = session.Request.PathAndQuery;

            if (!url.Contains("kcsapi/"))
            {
                return;
            }
            var s = new Session(url, session.Request.BodyAsString, session.Response.BodyAsString);

            Privacy.Remove(s);
            if (s.Response == null || !s.Response.StartsWith("svdata="))
            {
                WriteDebugLog(s);
                return;
            }
            s.Response = UnEscapeString(s.Response.Remove(0, "svdata=".Length));
            WriteDebugLog(s);
            ProcessRequestMain(s);
        }
Esempio n. 2
0
 private void HttpProxy_AfterSessionComplete(HttpProxy.Session session)
 {
     _form.BeginInvoke(new Action <HttpProxy.Session>(ProcessRequest), session);
 }