C# Geckofx22如何在导航事件中获取POST数据

C# Geckofx22如何在导航事件中获取POST数据,c#,events,post,geckofx,C#,Events,Post,Geckofx,我试图从浏览器将要导航到的页面获取POST数据,进行一些处理并重新发布/重定向它 private void webBrowser_Navigating(object sender, Gecko.Events.GeckoNavigatingEventArgs e) { //how get POST data ?? } GeckoNavigatingEventArgs have no POST data property public class GeckoNavigatingEventArg

我试图从浏览器将要导航到的页面获取POST数据,进行一些处理并重新发布/重定向它

private void webBrowser_Navigating(object sender, Gecko.Events.GeckoNavigatingEventArgs e)
{
//how get POST data ??
}

GeckoNavigatingEventArgs have no POST data property

 public class GeckoNavigatingEventArgs : CancelEventArgs
    {
        public readonly GeckoWindow DomWindow;
        public readonly bool DomWindowTopLevel;
        public readonly Uri Uri;

        public GeckoNavigatingEventArgs(Uri value, GeckoWindow domWind);
    }
我在过去的csEXWB控件中使用了“public object postdata;”在他之前的航行中

不幸的是,csEXWB太老了,不能使用

先谢谢你

编辑:我找到了

Gecko.DOM.GeckoInputElement element = (Gecko.DOM.GeckoInputElement)this.geckoBrowser.Document.GetHtmlElementById("amount");
            string amount = element.DefaultValue;