TSG-11849 tfe增加从环境变量中读入处理机ip
TSG-11742 IP Libraries统一使用.分隔地理层级 TSG-10722 日志中开始时间从解析层获取
This commit is contained in:
69
plugin/business/tsg-http/test/test_data/facebook_index.html
Normal file
69
plugin/business/tsg-http/test/test_data/facebook_index.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
73
plugin/business/tsg-http/test/test_data/http_session.lua
Normal file
73
plugin/business/tsg-http/test/test_data/http_session.lua
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
local ctx=tfe.context
|
||||
|
||||
function Sleep2(n)
|
||||
local t0 = os.clock()
|
||||
while os.clock() - t0 <= n do end
|
||||
end
|
||||
|
||||
if(tfe.get_current_stage() == "http_stage_test")
|
||||
then
|
||||
Sleep2(1000)
|
||||
end
|
||||
|
||||
if(tfe.get_current_stage() == "http_req_header")
|
||||
then
|
||||
local req_headers_tab = tfe.req.get_headers()
|
||||
for k, v in pairs(req_headers_tab) do
|
||||
print(k,v)
|
||||
if k == "User-Agent" then
|
||||
tfe.req.set_header("user-agent", "curl-v1.1")
|
||||
end
|
||||
if k == "Pragma" then
|
||||
tfe.req.set_header("pragma", "nil")
|
||||
end
|
||||
end
|
||||
--tfe.exit(0)
|
||||
tfe.req.set_header("x-tg-construct-by", "tfe")
|
||||
local method = tfe.req.get_method()
|
||||
print(method)
|
||||
end
|
||||
|
||||
if(tfe.get_current_stage() == "http_req_uri")
|
||||
then
|
||||
local req_uri=tfe.req.get_uri()
|
||||
if req_uri then
|
||||
tfe.req.set_uri("team")
|
||||
end
|
||||
end
|
||||
|
||||
if(tfe.get_current_stage() == "http_resp_header")
|
||||
then
|
||||
local resp_headers_tab = tfe.resp.get_headers()
|
||||
for k, v in pairs(resp_headers_tab) do
|
||||
print(k,v)
|
||||
if k == "Content-Type" then
|
||||
tfe.resp.set_header("Content-Type", "utf8")
|
||||
end
|
||||
if k == "Expires" then
|
||||
tfe.resp.set_header("Expires", "nil")
|
||||
end
|
||||
end
|
||||
local status_code = tfe.resp.get_status_code()
|
||||
print(status_code)
|
||||
end
|
||||
|
||||
if(tfe.get_current_stage() == "http_req_body")
|
||||
then
|
||||
local req_body = tfe.req.get_body_data()
|
||||
if req_body then
|
||||
tfe.req.set_body_data(req_body, " set req body")
|
||||
end
|
||||
len=#req_body
|
||||
return len
|
||||
end
|
||||
|
||||
if(tfe.get_current_stage() == "http_resp_body")
|
||||
then
|
||||
local resp_body = tfe.resp.get_body_data()
|
||||
if resp_body then
|
||||
tfe.resp.set_body_data(resp_body, " set resp body")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
|
||||
<!-- saved from url=(0031)http://mirror.hoster.kz/centos/ -->
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Index of /centos/</title>
|
||||
</head>
|
||||
<body bgcolor="white">
|
||||
<h1>Index of /centos/</h1><hr><pre><a href="http://mirror.hoster.kz/">../</a>
|
||||
<a href="http://mirror.hoster.kz/centos/2/">2/</a> 09-Sep-2009 05:18 -
|
||||
<a href="http://mirror.hoster.kz/centos/2.1/">2.1/</a> 09-Sep-2009 05:18 -
|
||||
<a href="http://mirror.hoster.kz/centos/3/">3/</a> 02-Mar-2011 23:44 -
|
||||
<a href="http://mirror.hoster.kz/centos/3.1/">3.1/</a> 02-Mar-2011 23:44 -
|
||||
<a href="http://mirror.hoster.kz/centos/3.3/">3.3/</a> 02-Mar-2011 23:44 -
|
||||
<a href="http://mirror.hoster.kz/centos/3.4/">3.4/</a> 02-Mar-2011 23:44 -
|
||||
<a href="http://mirror.hoster.kz/centos/3.5/">3.5/</a> 02-Mar-2011 23:44 -
|
||||
<a href="http://mirror.hoster.kz/centos/3.6/">3.6/</a> 02-Mar-2011 23:44 -
|
||||
<a href="http://mirror.hoster.kz/centos/3.7/">3.7/</a> 02-Mar-2011 23:44 -
|
||||
<a href="http://mirror.hoster.kz/centos/3.8/">3.8/</a> 02-Mar-2011 23:44 -
|
||||
<a href="http://mirror.hoster.kz/centos/3.9/">3.9/</a> 02-Mar-2011 23:44 -
|
||||
<a href="http://mirror.hoster.kz/centos/4/">4/</a> 03-Apr-2017 11:34 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.0/">4.0/</a> 18-Jul-2005 21:11 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.1/">4.1/</a> 21-Oct-2005 17:54 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.2/">4.2/</a> 04-Nov-2006 12:43 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.3/">4.3/</a> 10-Nov-2006 22:15 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.4/">4.4/</a> 07-Jul-2007 18:21 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.5/">4.5/</a> 10-Jan-2008 16:12 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.6/">4.6/</a> 31-Mar-2009 11:55 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.7/">4.7/</a> 08-Mar-2010 10:56 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.8/">4.8/</a> 13-Mar-2012 00:14 -
|
||||
<a href="http://mirror.hoster.kz/centos/4.9/">4.9/</a> 03-Apr-2017 11:34 -
|
||||
<a href="http://mirror.hoster.kz/centos/5/">5/</a> 03-Apr-2017 11:34 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.0/">5.0/</a> 16-Oct-2014 13:37 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.1/">5.1/</a> 16-Oct-2014 13:37 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.10/">5.10/</a> 03-Apr-2017 11:30 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.11/">5.11/</a> 03-Apr-2017 11:34 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.2/">5.2/</a> 16-Oct-2014 13:37 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.3/">5.3/</a> 16-Oct-2014 13:37 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.4/">5.4/</a> 16-Oct-2014 13:37 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.5/">5.5/</a> 16-Oct-2014 13:37 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.6/">5.6/</a> 16-Oct-2014 13:37 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.7/">5.7/</a> 16-Oct-2014 13:37 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.8/">5.8/</a> 16-Oct-2014 13:37 -
|
||||
<a href="http://mirror.hoster.kz/centos/5.9/">5.9/</a> 16-Oct-2014 13:38 -
|
||||
<a href="http://mirror.hoster.kz/centos/6/">6/</a> 02-Jul-2018 15:32 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.0/">6.0/</a> 16-Oct-2014 13:42 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.1/">6.1/</a> 16-Oct-2014 13:42 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.10/">6.10/</a> 02-Jul-2018 15:32 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.2/">6.2/</a> 16-Oct-2014 13:42 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.3/">6.3/</a> 16-Oct-2014 13:42 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.4/">6.4/</a> 16-Oct-2014 13:42 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.5/">6.5/</a> 05-Jan-2015 14:33 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.6/">6.6/</a> 12-Aug-2015 12:23 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.7/">6.7/</a> 01-Jun-2016 16:09 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.8/">6.8/</a> 12-Jun-2017 12:38 -
|
||||
<a href="http://mirror.hoster.kz/centos/6.9/">6.9/</a> 25-Jul-2018 15:42 -
|
||||
<a href="http://mirror.hoster.kz/centos/7/">7/</a> 02-Dec-2018 14:34 -
|
||||
<a href="http://mirror.hoster.kz/centos/7.0.1406/">7.0.1406/</a> 07-Apr-2015 14:24 -
|
||||
<a href="http://mirror.hoster.kz/centos/7.1.1503/">7.1.1503/</a> 08-Jan-2016 15:25 -
|
||||
<a href="http://mirror.hoster.kz/centos/7.2.1511/">7.2.1511/</a> 28-Jan-2017 14:29 -
|
||||
<a href="http://mirror.hoster.kz/centos/7.3.1611/">7.3.1611/</a> 25-Oct-2017 14:57 -
|
||||
<a href="http://mirror.hoster.kz/centos/7.4.1708/">7.4.1708/</a> 24-May-2018 13:25 -
|
||||
<a href="http://mirror.hoster.kz/centos/7.5.1804/">7.5.1804/</a> 04-Jan-2019 16:00 -
|
||||
<a href="http://mirror.hoster.kz/centos/7.6.1810/">7.6.1810/</a> 02-Dec-2018 14:34 -
|
||||
<a href="http://mirror.hoster.kz/centos/HEADER.images/">HEADER.images/</a> 07-Nov-2013 15:21 -
|
||||
<a href="http://mirror.hoster.kz/centos/build/">build/</a> 12-Jun-2005 12:56 -
|
||||
<a href="http://mirror.hoster.kz/centos/dostools/">dostools/</a> 04-Apr-2007 09:45 -
|
||||
<a href="http://mirror.hoster.kz/centos/graphics/">graphics/</a> 12-Jun-2014 11:59 -
|
||||
<a href="http://mirror.hoster.kz/centos/HEADER.html">HEADER.html</a> 29-Sep-2014 19:27 1234
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-3">RPM-GPG-KEY-CentOS-3</a> 15-Mar-2004 23:16 1795
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-4">RPM-GPG-KEY-CentOS-4</a> 26-Feb-2005 17:51 1795
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-5">RPM-GPG-KEY-CentOS-5</a> 19-Feb-2007 17:57 1504
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-6">RPM-GPG-KEY-CentOS-6</a> 10-Jul-2011 14:28 1706
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-7">RPM-GPG-KEY-CentOS-7</a> 04-Jul-2014 16:01 1690
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-Debug-6">RPM-GPG-KEY-CentOS-Debug-6</a> 10-Jul-2011 14:28 1730
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-Debug-7">RPM-GPG-KEY-CentOS-Debug-7</a> 09-Dec-2015 09:59 1004
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-Security-6">RPM-GPG-KEY-CentOS-Security-6</a> 10-Jul-2011 14:28 1730
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-Testing-6">RPM-GPG-KEY-CentOS-Testing-6</a> 10-Jul-2011 14:28 1734
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-CentOS-Testing-7">RPM-GPG-KEY-CentOS-Testing-7</a> 09-Dec-2015 09:59 1690
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-beta">RPM-GPG-KEY-beta</a> 19-Feb-2007 17:56 1512
|
||||
<a href="http://mirror.hoster.kz/centos/RPM-GPG-KEY-centos4">RPM-GPG-KEY-centos4</a> 26-Feb-2005 17:51 1795
|
||||
<a href="http://mirror.hoster.kz/centos/TIME">TIME</a> 17-May-2019 05:35 11
|
||||
<a href="http://mirror.hoster.kz/centos/dir_sizes">dir_sizes</a> 17-May-2019 05:10 963
|
||||
<a href="http://mirror.hoster.kz/centos/filelist.gz">filelist.gz</a> 17-May-2019 05:10 5612272
|
||||
<a href="http://mirror.hoster.kz/centos/timestamp.txt">timestamp.txt</a> 17-May-2019 05:35 29
|
||||
</pre><hr>
|
||||
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user