本文介绍了使用DSAPI重写URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要重写URL.即,当用户发送对"url1"的请求时,我们会向"url2"发出请求("url1"在浏览器中不会更改,用户对此一无所知).我环顾四周,没有找到其他解决方案,而是DSAPI过滤器. DSAPI可以满足我的需要,但是由于经验不足,我无法完成该任务.

I need to rewrite URL. i.e. when user send request for 'url1' we will do request to 'url2' ('url1' will not be changed in browser, users should not know anything about that). I've looked a bit around and did not find another solution but DSAPI filter. DSAPI can do what I need, however due to low experience I can't complete that task.

有人可以建议我应该关注哪些事件吗?以及我该怎么办.

Can somebody suggest me what events should I look into? and what exactly should I do..

我正在查看以下事件:kFilterStartRequest,kFilterRawRequest或kFilterRewriteURL尚未成功.

I was looking on those events: kFilterStartRequest, kFilterRawRequest or kFilterRewriteURL no success yet.

推荐答案

我刚刚完成了基于DSAPI的解决方案,请在此处阅读如何使用DSAPI重写URL .

I've just complete my solution based of DSAPI, please read here how to rewrite URL using DSAPI.

这篇关于使用DSAPI重写URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 09:12