Asp.net http 调优应用
有没有用asp.net编写的开源http隧道软件?我知道我可以简单地获取 http 响应并将其显示在 iframe 中,但这不是想要的结果。链接要更换,页面内容的样式要分别设置。这需要大量的解析和编辑工作。如果有一个开源控件或项目可以为我做到这一点,那就太好了。不幸的是我在网上找不到任何东西。
Is there any open source http tunneling software written in asp.net ? I know i can simply get http response and display it in an iframe, but this is not the result want. The links should be replaced, the styles of the page content should be set respectively. This needs lots of parsing and editing stuff. It would be great if there is an open source control or project that can do it for me. Unfortunately i couldn't find any on the web.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我理解正确的话,您希望能够在 ASP.NET 页面中显示来自不同域的内容而不使用 IFRAMES?如果是这样,我认为今天这是不可能的。
有;然而,一个 jQuery 插件允许您使用 JSONP+YQL 从其他网站加载内容。请参见此处和此处。
If I understand correctly, you want to be able to display content from a different domain in an asp.net page without using IFRAMES? If that's so, I don't think that is possible today.
There is; however, a jQuery plugin that allows you load content from other websites using JSONP+YQL. Se here and here.
从页面的代码隐藏中,使用
System.Net.WebClient
向其他站点发出 Web 请求,然后获取返回的 HTML 并将其显示在您的页面上。编辑:
如果您不想自己手动修复所有 HTML,请查看应用程序请求路由 IIS7 中的模块。它可以充当代理并从其他域提取内容。
From your page's code behind, use the
System.Net.WebClient
to make a webrequest to the other site and then take the returned HTML and display it on your page.Edit:
If you don't want to manually fix all of the HTML yourself, take a look at the Application Request Routing module in IIS7. It can act like a proxy and pull in content from other domains.