//Test On Request, intecept requests //Read browser URL send back to proxy by the injection script in OnResponse event public void OnRequest(object sender, SessionEventArgs e) { string Random = e.RequestURL.Substring(e.RequestURL.LastIndexOf(@"/") + 1); int index = _URLList.IndexOf(Random); if (index >= 0) { string URL = e.Decode(); if (_lastURL != URL) { OnChanged(new VisitedEventArgs() { hostname = e.Hostname, URL = URL, remoteIP = e.ipAddress, remotePort = e.Port }); } e.Ok(null); _lastURL = URL; } }