Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 WPF 应用程序,我在其中使用 CefSharp 浏览器控件来呈现网页。我需要能够执行 HttpPost 并打开 uri。我查看了 CefSharp 文档并没有找到任何实现此功能的具体示例,但我确信这可能是 CefSharp 组件的一部分。任何关于如何实现这一点的指示都会非常有帮助。
谢谢
您是从 Http Post 或一些 HtmlContent 中获取 Url 吗?
无论哪种方式的 HttpPost 都与 Web 浏览器控件无关。
您可以在控件之外创建一个 Http Post,这反过来会返回您的 html 内容,并且您将使用 CefSharp 显示使用LoadHtml函数返回的内容,或者如果您从您的帖子中获取一个 Url,那么您只需将 webbrowser wpf 控件的 Url 设置为 Http Post 返回的 Url。