您可以从框架中使用 POST 调用表单吗
我现在有一个使用 Frames 的经典 ASP 系统,但我需要锁定 CSS 和 CSRF 系统。我对这门语言比较陌生,但已经搜索了几天但找不到答案。
我想将对表单的调用从 Gets 更改为 Post。 我是否需要将应用程序重写到其间的所有其他表单级别才能完成此操作?这是框架
<FRAMESET COLS="46%,*">
<FRAME NAME="M_LFrame" SRC="M_LFrm.asp" MARGINWIDTH="5" MARGINHEIGHT="5" SCROLLING="auto" FRAMEBORDER="no">
<FRAME NAME="M_RFrame" SRC="M_RFrm.asp" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto" FRAMEBORDER="yes">
</FRAMESET>
M_LFrm.asp 和 M_RFrm.asp 的两种形式都有调用数据库获取信息的 asp 逻辑。在调用数据库之前,我想进行 CSRF 令牌检查,但不确定如何将令牌传递到这些表单中,因为它们是通过获取且可见的框架传递的。有没有办法用 POST 调用这些表单?
谢谢。
I have a classic ASP system that utilizes Frames today but I need to lock down the system for CSS and CSRF. I am newer to this language but have been serching for days and can't find the answer.
I would like to change the calls to the forms from Gets to Post.
Do I need to re-write the aplication to all another Form level in between to accomplish this? Here is the Frame
<FRAMESET COLS="46%,*">
<FRAME NAME="M_LFrame" SRC="M_LFrm.asp" MARGINWIDTH="5" MARGINHEIGHT="5" SCROLLING="auto" FRAMEBORDER="no">
<FRAME NAME="M_RFrame" SRC="M_RFrm.asp" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto" FRAMEBORDER="yes">
</FRAMESET>
Both forms with the M_LFrm.asp and the M_RFrm.asp have asp logic calling the Database for information. Prior to calling the DB I would like to have a CSRF token check but am unsure how to pass a token into these forms as they are through Frames which are Gets and visible. Is there a way to call these forms with a POST?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在经典的 asp 中,使用 POST 而不是 GET 只需将表单从 method="get" 更改为 method="post" 即可。
处理表单数据的 ASP 代码将具有用于获取表单数据的“request.querystring()”或“request()”指令。
name]") 可以访问 GET 数据
访问POST数据
访问 POST 和 GET 数据
因此,要将代码从使用 GET 更改为 POST,在 ASP 代码中,您需要将任何 request.querystring() 指令更改为 request.form() 或简单地 request()
希望这会有所帮助,
In classic asp using a POST instead of a GET is a matter of changing your form from method="get" to method="post".
The ASP code that handles the form data will have a "request.querystring()" or "request()" instruction for fetching the form data.
name]") can access GET data
access POST data
access both POST and GET data
So to change the code from using GET to POST, in the ASP code you will need to change any request.querystring() instructions to request.form() or simply request()
hope this helps,