Getting Browsers Information from HEADER
I use perl and CGI to get the HEADER informations.
I use perl template to show the HTML files.
I use PurePerl to show the IP Informations.
perl file Action.pl:
use CGI;
use Template;
use Geo::IP::PurePerl;
my $gi = Geo::IP::PurePerl->open("/usr/local/share/GeoIP/GeoIP.dat", GEOIP_STANDARD);
my $clientIp = $ENV{REMOTE_ADDR};
my $q = CGI->new;
my $actionName = $q->param('actionName');
$h = $q->header();
my $str = "";
while (my ($key,$value)=each %ENV){
$str = $str . " $key===>$value\n";
}
my $vars = {
clientIp => $clientIp,
countryCode => $countryCode,
countryName => $countryName,
records => $record_str,
ispName => $ispName,
remoteHost => $ENV{REMOTE_HOST},
remotePort => $ENV{REMOTE_PORT},
remoteUser => $ENV{REMOTE_USER},
callingPage => $ENV{HTTP_REFERER},
requestMethod => $ENV{REQUEST_METHOD},
hostServerAddress => $ENV{HTTP_HOST},
requestURI => $ENV{REQUEST_URI},
userAgent => $ENV{HTTP_USER_AGENT},
httpAccept => $ENV{HTTP_ACCEPT},
httpAcceptCharset => $ENV{HTTP_ACCEPT_CHARSET},
httpAcceptEncoding => $ENV{HTTP_ACCEPT_ENCODING},
httpAcceptLanguage => $ENV{HTTP_ACCEPT_LANGUAGE},
httpCookie => $ENV{HTTP_COOKIE},
contentType => $ENV{CONTENT_TYPE},
contentLength => $ENV{CONTENT_LENGTH},
header => $h,
actionName => $actionName,
str => $str,
};
分享到:
相关推荐
Forget_the_Sandbox_Escape_Abusing_Browsers_from_Code_Execution 安全运营 业务风控 安全架构 漏洞挖掘 渗透测试
「数据库审计」Forget_the_Sandbox_Escape_Abusing_Browsers_from_Code_Execution - 技术分析 渗透测试 WEB应用防火墙 法律法规 安全知识 WAF
老外写的Webbrowser调用dll,简单方便获取request header,response header等各种网络资源的例子,实现了原来只有WebClient,WebRequest和HttpWebResquest才能实现的功能。 需要dll的完整源代码见我上传的另外一个资源...
Web Browsers, A web browser is the software program you use to access the World Wide Web, the graphical portion of the Internet. The first browser, called NCSA Mosaic, was developed at the National ...
解决asp.net部分服务器控件在ie11下不能使用问题,下载后直接将解压后的App_Browsers文件下放到项目根目录下即可。
解决IE10中 _doPostBack() 的bug 将App_Browsers直接放到IIS的发布网站下
Behind the scenes of modern web browsers
解决.net中web系统页面无法跳转,重定向失败问题,将此文件夹解压后放到项目文件夹中即可解决,亲测可用
WebRTC 1.0: Real-time Communication Between Browsers
浏览器安全性描述及防范浏览器安全性描述及防范浏览器安全性描述及防范
Getting Started with Grunt: The JavaScript Task Runner provides you with all the information you need to become an effective Grunt power-user. You will quickly learn how to install, configure, and ...
WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other...
WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other...
WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other...
在网站目录下新建app_browsers 把对应的IE.browser文件放在下面即可
// the browsers available from Sauce Labs are retrieved using an HTTPS request. // therefore, this is a promise var psBrowsers = require ( 'policystat-sauce-browsers' ) psBrowsers . then ( function ...
Getting Started with Grunt: The JavaScript Task Runner provides you with all the information you need to become an effective Grunt power-user. You will quickly learn how to install, configure, and run...
最新版《浏览器工作原理(how-browsers-work)中英文对照版》,共享给爱前端爱Web的童鞋~后端看看也能涨见识啦!好书值得推荐嘛~
浏览器可以被认为是使用最广泛的软件,本文将介绍浏览器的工 作原理,我们将看 到,从你在地址栏输入 google.com 到你看到 google 主页过程中都发生了什么