如何区分Http Get请求 [英] How to differentiate between Http Get request
本文介绍了如何区分Http Get请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法确定传入的http请求是否会因为
1用户输入指定的URL
或
2。它被要求作为html文档的一部分,从文档(页面)请求* .js文件。
Is there any way to identify whether incoming http request is coming because of
1 User Entered the specified Url
or
2. It was requested as part of html Document, say request for *.js file from document(page).
推荐答案
没有。两个请求之间没有区别,它会告诉您用户是否键入了URL。
唯一可以告诉您的是,如果添加了参数到您的HTML或javascript代码生成的请求字符串,用户不会输入的内容。
No. There is no difference between the two requests that will tell you if a user typed the URL or not.
The only way you can tell that is if you added a parameter to the request string made by your HTML or javascript code, something that the user won't type.
这篇关于如何区分Http Get请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文