summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-05-28 02:07:20 +0800
committeryangwei <[email protected]>2024-05-28 04:40:31 +0800
commitba8450caed9876a463fbfefc7a521cc62bce432e (patch)
tree552986583d706751572d39b180422811d5bb3e03 /test
parent0737ab92295eca2690e875db240f1b0af495d7dc (diff)
🧪 test(remove http decoder): rm related source code
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt1
-rw-r--r--test/http_decoder/CMakeLists.txt134
-rw-r--r--test/http_decoder/http_decoder_gtest.cpp303
-rw-r--r--test/http_decoder/http_pcap/http_chunked_res_gzip.pcapbin29517 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_connect_flood.pcapbin31672 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_get_encoded_uri.pcapbin35174 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_get_long_cookie.pcapbin4489 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_get_malformed.pcapbin16158 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_get_multi_trans.pcapbin35841 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_get_req_pipeline.pcapbin2251 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_get_single_trans.pcapbin1359 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_header_value_empty.pcapbin2129 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_headers_exceed_maximum.pcapbin5029 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_multi_parse_error.pcapbin123982 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_no_content_length.pcapbin1944 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_over_pppoe.pcapbin1991 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_over_tcp_keepalive.pcapbin20213 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_over_tls.pcapbin232820 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_post_multipart_form_data.pcapbin9624 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_req_1byte_sliding_window.pcapbin31724 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_res_1byte_sliding_window.pcapbin55449 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_res_gzip.pcapbin1707 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_trans_pipeline.pcapbin6832 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_tunnel_for_pop3.pcapbin3673 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_upgrade_http2.pcapbin1617 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/http_upgrade_websocket.pcapbin8519 -> 0 bytes
-rw-r--r--test/http_decoder/http_pcap/non_http.pcapbin27850 -> 0 bytes
-rw-r--r--test/http_decoder/test_env/conflist.inf9
-rw-r--r--test/http_decoder/test_env/sapp4.el8.x86_64.rpmbin1052968 -> 0 bytes
-rw-r--r--test/http_decoder/test_env/spec.toml11
-rw-r--r--test/http_decoder/test_env/start_loader.inf17
-rw-r--r--test/http_decoder/test_env/tsg_l7_protocol.conf57
-rw-r--r--test/http_decoder/test_result_json/http_chunked_res_gzip.json40
-rw-r--r--test/http_decoder/test_result_json/http_connect_flood.json686
-rw-r--r--test/http_decoder/test_result_json/http_get_encoded_uri.json71
-rw-r--r--test/http_decoder/test_result_json/http_get_long_cookie.json19
-rw-r--r--test/http_decoder/test_result_json/http_get_malformed.json38
-rw-r--r--test/http_decoder/test_result_json/http_get_multi_trans.json140
-rw-r--r--test/http_decoder/test_result_json/http_get_req_pipeline.json60
-rw-r--r--test/http_decoder/test_result_json/http_get_single_trans.json28
-rw-r--r--test/http_decoder/test_result_json/http_header_value_empty.json30
-rw-r--r--test/http_decoder/test_result_json/http_headers_exceed_maximum.json45
-rw-r--r--test/http_decoder/test_result_json/http_multi_parse_error.json197
-rw-r--r--test/http_decoder/test_result_json/http_no_content_length.json40
-rw-r--r--test/http_decoder/test_result_json/http_over_pppoe.json30
-rw-r--r--test/http_decoder/test_result_json/http_over_tcp_keepalive.json39
-rw-r--r--test/http_decoder/test_result_json/http_over_tls.json2
-rw-r--r--test/http_decoder/test_result_json/http_post_multipart_form_data.json94
-rw-r--r--test/http_decoder/test_result_json/http_req_1byte_sliding_window.json29
-rw-r--r--test/http_decoder/test_result_json/http_res_1byte_sliding_window.json29
-rw-r--r--test/http_decoder/test_result_json/http_res_gzip.json39
-rw-r--r--test/http_decoder/test_result_json/http_trans_pipeline.json348
-rw-r--r--test/http_decoder/test_result_json/http_tunnel_for_pop3.json28
-rw-r--r--test/http_decoder/test_result_json/http_upgrade_http2.json28
-rw-r--r--test/http_decoder/test_result_json/http_upgrade_websocket.json37
-rw-r--r--test/http_decoder/test_result_json/non_http.json1
-rw-r--r--test/plugin_manager/CMakeLists.txt8
-rw-r--r--test/plugin_manager/plugin_manager_gtest_main.cpp10
-rw-r--r--test/plugin_manager/plugin_manager_mock.h72
59 files changed, 85 insertions, 2635 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 7d3c6b9..a6e54d7 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,2 +1 @@
add_subdirectory(plugin_manager)
-#add_subdirectory(http_decoder)
diff --git a/test/http_decoder/CMakeLists.txt b/test/http_decoder/CMakeLists.txt
deleted file mode 100644
index 9bfc7ee..0000000
--- a/test/http_decoder/CMakeLists.txt
+++ /dev/null
@@ -1,134 +0,0 @@
-set(DECODER_NAME http_decoder)
-
-add_library(${DECODER_NAME}_test SHARED http_decoder_gtest.cpp)
-add_dependencies(${DECODER_NAME}_test ${DECODER_NAME})
-target_link_libraries(${DECODER_NAME}_test MESA_prof_load cjson)
-set_target_properties(${DECODER_NAME}_test PROPERTIES PREFIX "")
-
-set(TEST_RUN_DIR ${CMAKE_CURRENT_BINARY_DIR}/sapp)
-set(TEST_MAIN ${TEST_RUN_DIR}/plugin_test_main)
-
-# assemble test env
-add_test(NAME INSTALL_TEST_MAIN COMMAND sh -c "rpm -i ${CMAKE_CURRENT_SOURCE_DIR}/test_env/sapp4.el8.x86_64.rpm --prefix=${CMAKE_CURRENT_BINARY_DIR}/sapp --force --nodeps")
-
-add_test(NAME COPY_TEST_MAIN COMMAND sh -c "cp ${TEST_RUN_DIR}/tools/plugin_test_main ${TEST_RUN_DIR}/plugin_test_main")
-add_test(NAME COPY_CONF COMMAND sh -c "mkdir -p ${TEST_RUN_DIR}/tsgconf/ && cp ${CMAKE_CURRENT_SOURCE_DIR}/test_env/tsg_l7_protocol.conf ${TEST_RUN_DIR}/tsgconf/tsg_l7_protocol.conf")
-add_test(NAME COPY_SPEC COMMAND sh -c "mkdir -p ${TEST_RUN_DIR}/stellar_plugin/ && cp ${CMAKE_CURRENT_SOURCE_DIR}/test_env/spec.toml ${TEST_RUN_DIR}/stellar_plugin/spec.toml")
-add_test(NAME COPY_CONFLIST COMMAND sh -c "mkdir -p ${TEST_RUN_DIR}/plug/ && cp ${CMAKE_CURRENT_SOURCE_DIR}/test_env/conflist.inf ${TEST_RUN_DIR}/plug/conflist.inf")
-add_test(NAME COPY_INF COMMAND sh -c "mkdir -p ${TEST_RUN_DIR}/plug/stellar_on_sapp && cp ${CMAKE_CURRENT_SOURCE_DIR}/test_env/start_loader.inf ${TEST_RUN_DIR}/plug/stellar_on_sapp/start_loader.inf")
-
-# update config files
-add_test(NAME UPDATE_SAPP_LOG COMMAND bash -c "sed -i 's/sapp_log.fatal/sapp_log.info/' ${TEST_RUN_DIR}/etc/sapp_log.conf")
-add_test(NAME UPDATE_SAPP_SYN_MODE COMMAND bash -c "sed -i 's/syn_mandatory=1/syn_mandatory=0/' ${TEST_RUN_DIR}/etc/sapp.toml")
-add_test(NAME UPDATE_SAPP_REORDER COMMAND bash -c "sed -i 's/reorder_pkt_max=32/reorder_pkt_max=5/' ${TEST_RUN_DIR}/etc/sapp.toml")
-
-
-# update plugin to be tested
-add_test(NAME UPDATE_STELLAR_ON_SAPP_SO COMMAND sh -c "cp ${CMAKE_BINARY_DIR}/src/stellar_on_sapp/stellar_on_sapp.so ${TEST_RUN_DIR}/plug/stellar_on_sapp/stellar_on_sapp.so")
-add_test(NAME UPDATE_PLUG_SO COMMAND sh -c "cp ${CMAKE_BINARY_DIR}/src/${DECODER_NAME}/${DECODER_NAME}.so ${TEST_RUN_DIR}/stellar_plugin/${DECODER_NAME}.so")
-add_test(NAME UPDATE_TEST_SO COMMAND sh -c "cp ${CMAKE_CURRENT_BINARY_DIR}/${DECODER_NAME}_test.so ${TEST_RUN_DIR}/stellar_plugin/${DECODER_NAME}_test.so")
-
-set_tests_properties(INSTALL_TEST_MAIN COPY_TEST_MAIN COPY_CONF COPY_SPEC COPY_CONFLIST COPY_INF
- UPDATE_SAPP_LOG UPDATE_SAPP_SYN_MODE UPDATE_SAPP_REORDER
- UPDATE_STELLAR_ON_SAPP_SO UPDATE_PLUG_SO UPDATE_TEST_SO
- PROPERTIES FIXTURES_SETUP TestFixture)
-
-# run tests
-add_test(NAME HTTP_GET_SINGLE_TRANS_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_get_single_trans.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_get_single_trans.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_GET_MULTI_TRANS_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_get_multi_trans.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_get_multi_trans.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_GET_LONG_COOKIE_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_get_long_cookie.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_get_long_cookie.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_GET_ENCODED_URI_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_get_encoded_uri.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_get_encoded_uri.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_RES_GZIP_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_res_gzip.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_res_gzip.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_CHUNKED_RES_GZIP_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_chunked_res_gzip.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_chunked_res_gzip.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_OVER_TCP_KEEPALIVE_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_over_tcp_keepalive.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_over_tcp_keepalive.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_TUNNEL_FOR_POP3_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_tunnel_for_pop3.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_tunnel_for_pop3.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_OVER_PPPOE_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_over_pppoe.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_over_pppoe.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_OVER_TLS_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_over_tls.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_over_tls.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME NON_HTTP_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/non_http.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name non_http.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_REQ_1BYTE_SLIDING_WINDOW_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_req_1byte_sliding_window.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_req_1byte_sliding_window.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_RES_1BYTE_SLIDING_WINDOW_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_res_1byte_sliding_window.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_res_1byte_sliding_window.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_NO_CONTENT_LENGTH_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_no_content_length.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_no_content_length.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_POST_MULTIPART_FORM_DATA_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_post_multipart_form_data.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_post_multipart_form_data.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_HEADERS_EXCEED_MAXIMUM_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_headers_exceed_maximum.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_headers_exceed_maximum.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_CONNECT_FLOOD_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_connect_flood.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_connect_flood.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_GET_MALFORMED_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_get_malformed.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_get_malformed.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_HEADER_VALUE_EMPTY_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_header_value_empty.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_header_value_empty.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_UPGRADE_WEBSOCKET_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_upgrade_websocket.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_upgrade_websocket.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_UPGRADE_HTTP2_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_upgrade_http2.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_upgrade_http2.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_MULTI_PARSE_ERROR_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_multi_parse_error.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_multi_parse_error.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_GET_REQ_PIPELINE_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_get_req_pipeline.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_get_req_pipeline.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-add_test(NAME HTTP_TRANS_PIPELINE_TEST COMMAND ${TEST_MAIN} ${CMAKE_CURRENT_SOURCE_DIR}/test_result_json/http_trans_pipeline.json
- -f "find ${CMAKE_CURRENT_SOURCE_DIR}/http_pcap/ -name http_trans_pipeline.pcap|sort -V" WORKING_DIRECTORY ${TEST_RUN_DIR})
-
-
-set_tests_properties(HTTP_GET_SINGLE_TRANS_TEST
- HTTP_GET_MULTI_TRANS_TEST
- HTTP_GET_LONG_COOKIE_TEST
- HTTP_GET_ENCODED_URI_TEST
- HTTP_RES_GZIP_TEST
- HTTP_CHUNKED_RES_GZIP_TEST
- HTTP_OVER_TCP_KEEPALIVE_TEST
- HTTP_TUNNEL_FOR_POP3_TEST
- HTTP_OVER_PPPOE_TEST
- HTTP_OVER_TLS_TEST
- NON_HTTP_TEST
- HTTP_REQ_1BYTE_SLIDING_WINDOW_TEST
- HTTP_RES_1BYTE_SLIDING_WINDOW_TEST
- HTTP_NO_CONTENT_LENGTH_TEST
- HTTP_POST_MULTIPART_FORM_DATA_TEST
- HTTP_HEADERS_EXCEED_MAXIMUM_TEST
- HTTP_CONNECT_FLOOD_TEST
- HTTP_GET_MALFORMED_TEST
- HTTP_HEADER_VALUE_EMPTY_TEST
- HTTP_MULTI_PARSE_ERROR_TEST
- HTTP_UPGRADE_WEBSOCKET_TEST
- HTTP_UPGRADE_HTTP2_TEST
- HTTP_GET_REQ_PIPELINE_TEST
- HTTP_TRANS_PIPELINE_TEST
- PROPERTIES FIXTURES_REQUIRED TestFixture) \ No newline at end of file
diff --git a/test/http_decoder/http_decoder_gtest.cpp b/test/http_decoder/http_decoder_gtest.cpp
deleted file mode 100644
index 852844e..0000000
--- a/test/http_decoder/http_decoder_gtest.cpp
+++ /dev/null
@@ -1,303 +0,0 @@
-/*
-**********************************************************************************************
-* File: http_decoder_gtest.cpp
-* Description:
-* Authors: Liu WenTan <[email protected]>
-* Date: 2023-12-15
-* Copyright: (c) Since 2023 Geedge Networks, Ltd. All rights reserved.
-***********************************************************************************************
-*/
-
-#include <stdio.h>
-#include <time.h>
-#include <unistd.h>
-#include <assert.h>
-#include <string.h>
-
-#include "../../src/http_decoder/http_decoder.h"
-
-#ifdef __cplusplus
-extern "C"
-{
-
-#include "cJSON.h"
-
-#include "stellar/utils.h"
-#include "stellar/stellar.h"
-#include "stellar/session_exdata.h"
-#include "stellar/session_mq.h"
-
-int commit_test_result_json(cJSON *node, const char *name);
-}
-#endif
-
-#define MAX_KEY_STR_LEN 2048
-
-static int g_result_count = 1;
-int g_header_count = 1;
-int g_req_exdata_idx = 0;
-int g_res_exdata_idx = 0;
-int g_topic_id = 0;
-
-
-#if 1
-void output_http_req_line(struct http_request_line *req_line)
-{
- char tmp_str[MAX_KEY_STR_LEN] = {0};
- snprintf(tmp_str, req_line->method.str_len + 1, "%s", req_line->method.str);
- printf("req_method:%s\n", tmp_str);
-
- memset(tmp_str, 0, sizeof(tmp_str));
- snprintf(tmp_str, req_line->uri.str_len + 1, "%s", req_line->uri.str);
- printf("req_uri:%s\n", tmp_str);
-
- memset(tmp_str, 0, sizeof(tmp_str));
- snprintf(tmp_str, req_line->version.str_len + 1, "%s", req_line->version.str);
- printf("req_version:%s\n", tmp_str);
-}
-
-void output_http_res_line(struct http_response_line *res_line)
-{
- char tmp_str[MAX_KEY_STR_LEN] = {0};
- snprintf(tmp_str, res_line->version.str_len + 1, "%s", res_line->version.str);
- printf("res_version:%s\n", tmp_str);
-
- memset(tmp_str, 0, sizeof(tmp_str));
- snprintf(tmp_str, res_line->status.str_len + 1, "%s", res_line->status.str);
- printf("res_status:%s\n", tmp_str);
-}
-
-void output_http_header(struct http_header *header)
-{
- printf("<%s:%s>\n", header->key.str, header->val.str);
-}
-#endif
-
-void
-output_http_body(struct hstring *body, int decompress_flag)
-{
- int counter = 0;
-
- if (1 == decompress_flag) {
- printf("\n\n----------------decompress body len:%zu---------------\n",
- body->str_len);
- } else {
- printf("\n\n----------------raw body len:%zu---------------\n",
- body->str_len);
- }
-
- for (size_t i = 0; i < body->str_len; i++) {
- if (counter % 16 == 0) {
- printf("\n");
- }
- printf("%02x ", (unsigned char)body->str[i]);
- counter++;
- }
- printf("\n");
-}
-
-int
-http_field_to_json(cJSON *object, const char *key, char *val, size_t val_len)
-{
- if (NULL == object || NULL == key || NULL == val || 0 == val_len) {
- return -1;
- }
-
- char *tmp = CALLOC(char, val_len + 1);
- memcpy(tmp, val, val_len);
- cJSON_AddStringToObject(object, key, tmp);
- FREE(tmp);
-
- return 0;
-}
-
-void
-req_line_to_json(cJSON *ctx, struct http_request_line *req_line)
-{
- http_field_to_json(ctx, "method", req_line->method.str,
- req_line->method.str_len);
- http_field_to_json(ctx, "uri", req_line->uri.str, req_line->uri.str_len);
- http_field_to_json(ctx, "req_version", req_line->version.str,
- req_line->version.str_len);
-
- cJSON_AddNumberToObject(ctx, "major_version", req_line->major_version);
- cJSON_AddNumberToObject(ctx, "minor_version", req_line->minor_version);
-}
-
-void
-res_line_to_json(cJSON *ctx, struct http_response_line *res_line)
-{
- http_field_to_json(ctx, "res_version", res_line->version.str,
- res_line->version.str_len);
- http_field_to_json(ctx, "res_status", res_line->status.str,
- res_line->status.str_len);
-
- cJSON_AddNumberToObject(ctx, "major_version", res_line->major_version);
- cJSON_AddNumberToObject(ctx, "minor_version", res_line->minor_version);
- cJSON_AddNumberToObject(ctx, "status_code", res_line->status_code);
-}
-
-void
-http_header_to_json(cJSON *ctx, struct http_header *header)
-{
- char key[MAX_KEY_STR_LEN] = {0};
-
- memcpy(key, header->key.str, header->key.str_len);
-
- if (cJSON_HasObjectItem(ctx, key) == FALSE) {
- http_field_to_json(ctx, key, header->val.str, header->val.str_len);
- } else {
- //ctx already has the key, so rename key by key%d
- char new_key[MAX_KEY_STR_LEN] = {0};
- sprintf(new_key, "%s%d", key, g_header_count++);
- http_field_to_json(ctx, new_key, header->val.str, header->val.str_len);
- }
-}
-
-static int
-http_decoder_test_entry(struct session *sess, int topic_id, const void *data,
- void *cb_arg)
-{
- int exdata_idx = 0;
- struct http_request_line req_line = {0};
- struct http_response_line res_line = {0};
- struct http_header header = {0};
- struct hstring body = {0};
- struct http_message *msg = (struct http_message *)data;
- enum http_message_type msg_type = http_message_type(msg);
-
- if (msg_type == HTTP_MESSAGE_REQ_LINE ||
- msg_type == HTTP_MESSAGE_REQ_HEADER) {
- exdata_idx = g_req_exdata_idx;
- } else {
- exdata_idx = g_res_exdata_idx;
- }
-
- cJSON *json = (cJSON *)session_get_ex_data(sess, exdata_idx);
-
- if (msg_type == HTTP_MESSAGE_REQ_BODY ||
- msg_type == HTTP_MESSAGE_RES_BODY) {
- goto next;
- }
-
- if (NULL == json) {
- json = cJSON_CreateObject();
- cJSON_AddStringToObject(json, "Tuple4", session_get0_readable_addr(sess));
- session_set_ex_data(sess, exdata_idx, json);
- }
-
-next:
- switch (msg_type) {
- case HTTP_MESSAGE_REQ_LINE:
- http_message_get_request_line(msg, &req_line);
- req_line_to_json(json, &req_line);
- break;
- case HTTP_MESSAGE_REQ_HEADER:
- while (http_message_request_header_next(msg, &header) > 0) {
- http_header_to_json(json, &header);
- // output_http_header(&header);
- }
- g_header_count = 1;
- break;
- case HTTP_MESSAGE_REQ_BODY:
- http_message_get_request_raw_body(msg, &body);
- // output_http_body(&body, 0);
-
- http_message_get_request_decompress_body(msg, &body);
- // output_http_body(&body, 1);
- break;
- case HTTP_MESSAGE_RES_LINE:
- http_message_get_response_line(msg, &res_line);
- res_line_to_json(json, &res_line);
- break;
- case HTTP_MESSAGE_RES_HEADER:
- while (http_message_response_header_next(msg, &header) > 0) {
- http_header_to_json(json, &header);
- // output_http_header(&header);
- }
- g_header_count = 1;
- break;
- case HTTP_MESSAGE_RES_BODY:
- http_message_get_response_raw_body(msg, &body);
- // output_http_body(&body, 0);
-
- http_message_get_response_decompress_body(msg, &body);
- // output_http_body(&body, 1);
- break;
- default:
- break;
- }
-
- char result_name[MAX_KEY_STR_LEN] = {0};
- if (msg_type == HTTP_MESSAGE_REQ_HEADER) {
- sprintf(result_name, "HTTP_DECODER_RESULT_%d", g_result_count);
- commit_test_result_json(json, result_name);
- // printf("req json:%s\n", cJSON_Print(ctx));
- session_set_ex_data(sess, exdata_idx, NULL);
- g_result_count++;
- }
-
- if (msg_type == HTTP_MESSAGE_RES_HEADER) {
- sprintf(result_name, "HTTP_DECODER_RESULT_%d", g_result_count);
- commit_test_result_json(json, result_name);
- // printf("res json:%s\n", cJSON_Print(ctx));
- session_set_ex_data(sess, exdata_idx, NULL);
- g_result_count++;
- }
-
- return 0;
-}
-
-void
-http_decoder_test_exdata_free(struct session *sess, int idx, void *ex_ptr,
- void *arg)
-{
- if (ex_ptr != NULL) {
- cJSON_Delete((cJSON *)ex_ptr);
- }
-}
-
-extern "C" void *http_decoder_test_init(struct stellar *st)
-{
- g_req_exdata_idx =
- stellar_session_get_ex_new_index(st, "HTTP_DECODER_REQ_TEST",
- http_decoder_test_exdata_free,
- NULL);
- if (g_req_exdata_idx < 0) {
- printf("[%s:%d]: can't get http_decoder req exdata index !!!\n",
- __FUNCTION__, __LINE__);
- exit(-1);
- }
-
- g_res_exdata_idx =
- stellar_session_get_ex_new_index(st, "HTTP_DECODER_RES_TEST",
- http_decoder_test_exdata_free,
- NULL);
- if (g_res_exdata_idx < 0) {
- printf("[%s:%d]: can't get http_decoder res exdata index !!!\n",
- __FUNCTION__, __LINE__);
- exit(-1);
- }
-
- g_topic_id = session_mq_get_topic_id(st, "HTTP_DECODER_MESSAGE");
- if (g_topic_id < 0) {
- printf("[%s:%d]: can't get http_decoder topic id !!!\n",
- __FUNCTION__, __LINE__);
- exit(-1);
- }
-
- session_mq_subscribe_topic(st, g_topic_id, http_decoder_test_entry, NULL);
- printf("http_decoder_test_init OK!\n");
-
- return NULL;
-
-}
-
-extern "C" void http_decoder_test_exit(void *test_ctx)
-{
- if (test_ctx != NULL) {
- FREE(test_ctx);
- }
-
- printf("http_decoder_test_exit OK!\n");
-} \ No newline at end of file
diff --git a/test/http_decoder/http_pcap/http_chunked_res_gzip.pcap b/test/http_decoder/http_pcap/http_chunked_res_gzip.pcap
deleted file mode 100644
index fa237fb..0000000
--- a/test/http_decoder/http_pcap/http_chunked_res_gzip.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_connect_flood.pcap b/test/http_decoder/http_pcap/http_connect_flood.pcap
deleted file mode 100644
index 11b7e14..0000000
--- a/test/http_decoder/http_pcap/http_connect_flood.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_get_encoded_uri.pcap b/test/http_decoder/http_pcap/http_get_encoded_uri.pcap
deleted file mode 100644
index 633b50b..0000000
--- a/test/http_decoder/http_pcap/http_get_encoded_uri.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_get_long_cookie.pcap b/test/http_decoder/http_pcap/http_get_long_cookie.pcap
deleted file mode 100644
index 8857615..0000000
--- a/test/http_decoder/http_pcap/http_get_long_cookie.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_get_malformed.pcap b/test/http_decoder/http_pcap/http_get_malformed.pcap
deleted file mode 100644
index cfe16d9..0000000
--- a/test/http_decoder/http_pcap/http_get_malformed.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_get_multi_trans.pcap b/test/http_decoder/http_pcap/http_get_multi_trans.pcap
deleted file mode 100644
index 9c0d2e7..0000000
--- a/test/http_decoder/http_pcap/http_get_multi_trans.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_get_req_pipeline.pcap b/test/http_decoder/http_pcap/http_get_req_pipeline.pcap
deleted file mode 100644
index f805493..0000000
--- a/test/http_decoder/http_pcap/http_get_req_pipeline.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_get_single_trans.pcap b/test/http_decoder/http_pcap/http_get_single_trans.pcap
deleted file mode 100644
index a4b6bea..0000000
--- a/test/http_decoder/http_pcap/http_get_single_trans.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_header_value_empty.pcap b/test/http_decoder/http_pcap/http_header_value_empty.pcap
deleted file mode 100644
index 138f905..0000000
--- a/test/http_decoder/http_pcap/http_header_value_empty.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_headers_exceed_maximum.pcap b/test/http_decoder/http_pcap/http_headers_exceed_maximum.pcap
deleted file mode 100644
index 537bffa..0000000
--- a/test/http_decoder/http_pcap/http_headers_exceed_maximum.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_multi_parse_error.pcap b/test/http_decoder/http_pcap/http_multi_parse_error.pcap
deleted file mode 100644
index 0dca059..0000000
--- a/test/http_decoder/http_pcap/http_multi_parse_error.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_no_content_length.pcap b/test/http_decoder/http_pcap/http_no_content_length.pcap
deleted file mode 100644
index 28e6881..0000000
--- a/test/http_decoder/http_pcap/http_no_content_length.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_over_pppoe.pcap b/test/http_decoder/http_pcap/http_over_pppoe.pcap
deleted file mode 100644
index a6587cb..0000000
--- a/test/http_decoder/http_pcap/http_over_pppoe.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_over_tcp_keepalive.pcap b/test/http_decoder/http_pcap/http_over_tcp_keepalive.pcap
deleted file mode 100644
index 5b2db18..0000000
--- a/test/http_decoder/http_pcap/http_over_tcp_keepalive.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_over_tls.pcap b/test/http_decoder/http_pcap/http_over_tls.pcap
deleted file mode 100644
index 71c557e..0000000
--- a/test/http_decoder/http_pcap/http_over_tls.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_post_multipart_form_data.pcap b/test/http_decoder/http_pcap/http_post_multipart_form_data.pcap
deleted file mode 100644
index 0136e05..0000000
--- a/test/http_decoder/http_pcap/http_post_multipart_form_data.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_req_1byte_sliding_window.pcap b/test/http_decoder/http_pcap/http_req_1byte_sliding_window.pcap
deleted file mode 100644
index 632c676..0000000
--- a/test/http_decoder/http_pcap/http_req_1byte_sliding_window.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_res_1byte_sliding_window.pcap b/test/http_decoder/http_pcap/http_res_1byte_sliding_window.pcap
deleted file mode 100644
index 6d1d6a4..0000000
--- a/test/http_decoder/http_pcap/http_res_1byte_sliding_window.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_res_gzip.pcap b/test/http_decoder/http_pcap/http_res_gzip.pcap
deleted file mode 100644
index 04b9998..0000000
--- a/test/http_decoder/http_pcap/http_res_gzip.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_trans_pipeline.pcap b/test/http_decoder/http_pcap/http_trans_pipeline.pcap
deleted file mode 100644
index 9d4aa1a..0000000
--- a/test/http_decoder/http_pcap/http_trans_pipeline.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_tunnel_for_pop3.pcap b/test/http_decoder/http_pcap/http_tunnel_for_pop3.pcap
deleted file mode 100644
index 6df9669..0000000
--- a/test/http_decoder/http_pcap/http_tunnel_for_pop3.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_upgrade_http2.pcap b/test/http_decoder/http_pcap/http_upgrade_http2.pcap
deleted file mode 100644
index a77847a..0000000
--- a/test/http_decoder/http_pcap/http_upgrade_http2.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/http_upgrade_websocket.pcap b/test/http_decoder/http_pcap/http_upgrade_websocket.pcap
deleted file mode 100644
index e1ac4d0..0000000
--- a/test/http_decoder/http_pcap/http_upgrade_websocket.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/http_pcap/non_http.pcap b/test/http_decoder/http_pcap/non_http.pcap
deleted file mode 100644
index 931b43b..0000000
--- a/test/http_decoder/http_pcap/non_http.pcap
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/test_env/conflist.inf b/test/http_decoder/test_env/conflist.inf
deleted file mode 100644
index 2e8144d..0000000
--- a/test/http_decoder/test_env/conflist.inf
+++ /dev/null
@@ -1,9 +0,0 @@
-[platform]
-./plug/stellar_on_sapp/start_loader.inf
-
-
-[protocol]
-
-
-[business]
-#./plug/stellar_on_sapp/defer_loader.inf
diff --git a/test/http_decoder/test_env/sapp4.el8.x86_64.rpm b/test/http_decoder/test_env/sapp4.el8.x86_64.rpm
deleted file mode 100644
index e43fe2f..0000000
--- a/test/http_decoder/test_env/sapp4.el8.x86_64.rpm
+++ /dev/null
Binary files differ
diff --git a/test/http_decoder/test_env/spec.toml b/test/http_decoder/test_env/spec.toml
deleted file mode 100644
index 626f85b..0000000
--- a/test/http_decoder/test_env/spec.toml
+++ /dev/null
@@ -1,11 +0,0 @@
-# stellar_plugin.toml
-#
-[[plugin]]
-path = "./stellar_plugin/http_decoder.so"
-init = "http_decoder_init"
-exit = "http_decoder_exit"
-
-[[plugin]]
-path = "./stellar_plugin/http_decoder_test.so"
-init = "http_decoder_test_init"
-exit = "http_decoder_test_exit"
diff --git a/test/http_decoder/test_env/start_loader.inf b/test/http_decoder/test_env/start_loader.inf
deleted file mode 100644
index 89b2f94..0000000
--- a/test/http_decoder/test_env/start_loader.inf
+++ /dev/null
@@ -1,17 +0,0 @@
-[PLUGINFO]
-PLUGNAME=stellar_start_loader
-SO_PATH=./plug/stellar_on_sapp/stellar_on_sapp.so
-INIT_FUNC=STELLAR_START_LOADER_INIT
-DESTROY_FUNC=STELLAR_START_LOADER_EXIT
-
-#[TCP_ALL]
-#FUNC_FLAG=ALL
-#FUNC_NAME=stellar_on_sapp_tcpall_entry
-
-[TCP]
-FUNC_FLAG=ALL
-FUNC_NAME=stellar_on_sapp_tcp_entry
-
-[UDP]
-FUNC_FLAG=ALL
-FUNC_NAME=stellar_on_sapp_udp_entry \ No newline at end of file
diff --git a/test/http_decoder/test_env/tsg_l7_protocol.conf b/test/http_decoder/test_env/tsg_l7_protocol.conf
deleted file mode 100644
index 1075a8f..0000000
--- a/test/http_decoder/test_env/tsg_l7_protocol.conf
+++ /dev/null
@@ -1,57 +0,0 @@
-#TYPE:1:UCHAR,2:USHORT,3:USTRING,4:ULOG,5:USTRING,6:FILE,7:UBASE64,8:PACKET
-#TYPE FIELD VALUE
-STRING UNCATEGORIZED 8000
-#STRING UNCATEGORIZED 8001
-#STRING UNKNOWN_OTHER 8002
-STRING DNS 32
-STRING FTP 45
-STRING FTPS 751
-STRING HTTP 67
-STRING HTTPS 68
-STRING ICMP 70
-STRING IKE 8003
-STRING MAIL 8004
-STRING IMAP 75
-STRING IMAPS 76
-STRING IPSEC 85
-STRING XMPP 94
-STRING L2TP 98
-STRING NTP 137
-STRING POP3 147
-STRING POP3S 148
-STRING PPTP 153
-STRING QUIC 2521
-STRING SIP 182
-STRING SMB 185
-STRING SMTP 186
-STRING SMTPS 187
-STRING SPDY 1469
-STRING SSH 198
-STRING SSL 199
-STRING SOCKS 8005
-STRING TELNET 209
-STRING DHCP 29
-STRING RADIUS 158
-STRING OPENVPN 336
-STRING STUN 201
-STRING TEREDO 555
-STRING DTLS 1291
-STRING DoH 8006
-STRING ISAKMP 92
-STRING MDNS 3835
-STRING NETBIOS 129
-STRING NETFLOW 130
-STRING RDP 150
-STRING RTCP 174
-STRING RTP 175
-STRING SLP 8007
-STRING SNMP 190
-STRING SSDP 197
-STRING TFTP 211
-STRING BJNP 2481
-STRING LDAP 100
-STRING RTMP 337
-STRING RTSP 176
-STRING ESNI 8008
-STRING QQ 156
-STRING WeChat 1296
diff --git a/test/http_decoder/test_result_json/http_chunked_res_gzip.json b/test/http_decoder/test_result_json/http_chunked_res_gzip.json
deleted file mode 100644
index 3fe64ca..0000000
--- a/test/http_decoder/test_result_json/http_chunked_res_gzip.json
+++ /dev/null
@@ -1,40 +0,0 @@
-[
- {
- "Tuple4": "127.0.0.1.33412>127.0.0.1.8080",
- "method": "GET",
- "uri": "/",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "www.wireshark.org:8080",
- "User-Agent": "curl/7.46.0",
- "Accept": "*/*",
- "Connection": "close",
- "Accept-Encoding": "chunked, gzip",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "127.0.0.1.33412>127.0.0.1.8080",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Server": "cloudflare-nginx",
- "Date": "Wed, 06 Jan 2016 20:42:10 GMT",
- "Content-Type": "text/html",
- "Transfer-Encoding": "chunked",
- "Connection": "close",
- "Set-Cookie": "__cfduid=d8d37b52eaa3137bdfd7fd67a4ffc8a7a1452112929; expires=Thu, 05-Jan-17 20:42:09 GMT; path=/; domain=.wireshark.org; HttpOnly",
- "X-Frame-Options": "SAMEORIGIN",
- "Strict-Transport-Security": "max-age=31536000;",
- "X-Slogan": "It's a great product with a great story to tell. I'm pumped!",
- "X-Mod-Pagespeed": "1.9.32.11-7550",
- "Vary": "Accept-Encoding",
- "Cache-control": "max-age=0, no-cache, no-store",
- "X-Slogan1": "Go deep.",
- "CF-RAY": "260a3f709d7b0761-AMS",
- "Content-Encoding": "gzip",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_connect_flood.json b/test/http_decoder/test_result_json/http_connect_flood.json
deleted file mode 100644
index 199c038..0000000
--- a/test/http_decoder/test_result_json/http_connect_flood.json
+++ /dev/null
@@ -1,686 +0,0 @@
-[
- {
- "Tuple4": "10.128.0.2.18762>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110929 Iceweasel/3.5.16",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "10.128.0.2.18746>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_2"
- },
- {
- "Tuple4": "10.128.0.2.18744>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_3"
- },
- {
- "Tuple4": "10.128.0.2.18748>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_4"
- },
- {
- "Tuple4": "10.128.0.2.18750>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_5"
- },
- {
- "Tuple4": "10.128.0.2.18752>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_6"
- },
- {
- "Tuple4": "10.128.0.2.18754>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_7"
- },
- {
- "Tuple4": "10.128.0.2.18756>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_8"
- },
- {
- "Tuple4": "10.128.0.2.18758>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_9"
- },
- {
- "Tuple4": "10.128.0.2.18760>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_10"
- },
- {
- "Tuple4": "10.128.0.2.18762>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:38 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_11"
- },
- {
- "Tuple4": "10.128.0.2.18768>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Safari/5.00 (Macintosh; U; en)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_12"
- },
- {
- "Tuple4": "10.128.0.2.18766>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_13"
- },
- {
- "Tuple4": "10.128.0.2.18770>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Opera/9.00 (Windows NT 5.1; U; en)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_14"
- },
- {
- "Tuple4": "10.128.0.2.18772>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Opera/9.00 (Windows NT 5.1; U; en)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_15"
- },
- {
- "Tuple4": "10.128.0.2.18776>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "GooglePocket/2.1 ( http://www.googlePocket.com/Pocket.html)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_16"
- },
- {
- "Tuple4": "10.128.0.2.18774>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.4.0",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_17"
- },
- {
- "Tuple4": "10.128.0.2.18780>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030505 Mozilla Firebird/0.6",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_18"
- },
- {
- "Tuple4": "10.128.0.2.18778>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "DoCoMo/2.0 SH902i (compatible; Y!J-SRD/1.0; http://help.yahoo.co.jp/help/jp/search/indexing/indexing-27.html)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_19"
- },
- {
- "Tuple4": "10.128.0.2.18782>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "IE/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322;)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_20"
- },
- {
- "Tuple4": "10.128.0.2.18784>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110929 Iceweasel/3.5.16",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_21"
- },
- {
- "Tuple4": "10.128.0.2.18768>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_22"
- },
- {
- "Tuple4": "10.128.0.2.18766>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_23"
- },
- {
- "Tuple4": "10.128.0.2.18770>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_24"
- },
- {
- "Tuple4": "10.128.0.2.18772>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_25"
- },
- {
- "Tuple4": "10.128.0.2.18776>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_26"
- },
- {
- "Tuple4": "10.128.0.2.18780>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_27"
- },
- {
- "Tuple4": "10.128.0.2.18774>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_28"
- },
- {
- "Tuple4": "10.128.0.2.18778>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_29"
- },
- {
- "Tuple4": "10.128.0.2.18782>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_30"
- },
- {
- "Tuple4": "10.128.0.2.18784>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:39 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_31"
- },
- {
- "Tuple4": "10.128.0.2.18790>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Safari/5.00 (Macintosh; U; en)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_32"
- },
- {
- "Tuple4": "10.128.0.2.18792>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_33"
- },
- {
- "Tuple4": "10.128.0.2.18796>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Opera/9.00 (Windows NT 5.1; U; en)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_34"
- },
- {
- "Tuple4": "10.128.0.2.18794>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Opera/9.00 (Windows NT 5.1; U; en)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_35"
- },
- {
- "Tuple4": "10.128.0.2.18798>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "GooglePocket/2.1 ( http://www.googlePocket.com/Pocket.html)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_36"
- },
- {
- "Tuple4": "10.128.0.2.18800>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030505 Mozilla Firebird/0.6",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_37"
- },
- {
- "Tuple4": "10.128.0.2.18804>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "DoCoMo/2.0 SH902i (compatible; Y!J-SRD/1.0; http://help.yahoo.co.jp/help/jp/search/indexing/indexing-27.html)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_38"
- },
- {
- "Tuple4": "10.128.0.2.18802>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.4.0",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_39"
- },
- {
- "Tuple4": "10.128.0.2.18806>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "IE/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322;)",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_40"
- },
- {
- "Tuple4": "10.128.0.2.18808>10.0.0.2.80",
- "method": "CONNECT",
- "uri": "test.mazebolt.com:80",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.mazebolt.com",
- "User-Agent": "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110929 Iceweasel/3.5.16",
- "Accept": "*/*",
- "Accept-Encoding": "gzip, deflate",
- "Content-Length": "0",
- "name": "HTTP_DECODER_RESULT_41"
- },
- {
- "Tuple4": "10.128.0.2.18790>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_42"
- },
- {
- "Tuple4": "10.128.0.2.18792>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_43"
- },
- {
- "Tuple4": "10.128.0.2.18796>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_44"
- },
- {
- "Tuple4": "10.128.0.2.18798>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_45"
- },
- {
- "Tuple4": "10.128.0.2.18794>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_46"
- },
- {
- "Tuple4": "10.128.0.2.18800>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_47"
- },
- {
- "Tuple4": "10.128.0.2.18804>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_48"
- },
- {
- "Tuple4": "10.128.0.2.18802>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_49"
- },
- {
- "Tuple4": "10.128.0.2.18806>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_50"
- },
- {
- "Tuple4": "10.128.0.2.18808>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "Forbidden",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 403,
- "Date": "Thu, 03 Sep 2020 10:26:41 GMT",
- "Server": "Apache",
- "Content-Length": "199",
- "Content-Type": "text/html; charset=iso-8859-1",
- "name": "HTTP_DECODER_RESULT_51"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_get_encoded_uri.json b/test/http_decoder/test_result_json/http_get_encoded_uri.json
deleted file mode 100644
index 25a6362..0000000
--- a/test/http_decoder/test_result_json/http_get_encoded_uri.json
+++ /dev/null
@@ -1,71 +0,0 @@
-[
- {
- "Tuple4": "192.168.117.60.39655>58.16.70.122.80",
- "method": "POST",
- "uri": "/disAll/tcCertType.html",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36",
- "Accept": "*/*",
- "Accept-Language": "en-US,en;q=0.8,en-us,en;q=0.5",
- "Origin": "http://58.16.70.122",
- "X-Requested-With": "XMLHttpRequest",
- "Referer": "http://58.16.70.122/register.jsp?redirect:http://58.16.70.122.r87.com/?",
- "Cache-Control": "no-cache",
- "X-Scanner": "Netsparker",
- "Cookie": "JSESSIONID=385C79E211D561C0CA13D90F150F603D",
- "Host": "58.16.70.122",
- "Content-Length": "0",
- "Accept-Encoding": "gzip, deflate",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.117.60.39655>58.16.70.122.80",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Server": "Apache-Coyote/1.1",
- "Pragma": "No-cache",
- "Expires": "Thu, 01 Jan 1970 00:00:00 GMT",
- "Content-Type": "text/html;charset=UTF-8",
- "Transfer-Encoding": "chunked",
- "Date": "Sat, 18 May 2019 01:36:57 GMT",
- "name": "HTTP_DECODER_RESULT_2"
- },
- {
- "Tuple4": "192.168.117.60.39655>58.16.70.122.80",
- "method": "GET",
- "uri": "/upload/%E6%B3%95%E5%BE%8B%E6%B3%95%E8%A7%84/%E5%B8%82%E4%BA%BA%E6%B0%91%E6%94%BF%E5%BA%9C%E5%8A%9E%E5%85%AC%E5%8E%85%E5%8D%B0%E5%8F%91%E8%B4%B5%E9%98%B3%E5%B8%82%E5%85%B3%E4%BA%8E%E6%8E%A8%E8%BF%9B%E5%B7%A5%E5%95%86%E8%90%A5%E4%B8%9A%E6%89%A7%E7%85%A7%E3%80%81%E7%BB%84%E7%BB%87%E6%9C%BA%E6%9E%84%E4%BB%A3%E7%A0%81%E8%AF%81%E5%92%8C%E7%A8%8E%E5%8A%A1%E7%99%BB%E8%AE%B0%E8%AF%81%E2%80%9C%E4%B8%89%E8%AF%81%E5%90%88%E4%B8%80%E2%80%9D%E7%99%BB%E8%AE%B0%E5%88%B6%E5%BA%A6%E6%94%B9%E9%9D%A9%E5%AE%9E%E6%96%BD%E6%96%B9%E6%A1%88%E7%9A%84%E9%80%9A%E7%9F%A5%EF%BC%88%E7%AD%91%E5%BA%9C%E5%8A%9E%E5%87%BD%E3%80%902015%E3%80%91162%E5%8F%B7%EF%BC%89.docx?nsextt=N3TSP4RKE2",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36",
- "Cache-Control": "no-cache",
- "Accept-Language": "en-us,en;q=0.5",
- "X-Scanner": "Netsparker",
- "Cookie": "JSESSIONID=385C79E211D561C0CA13D90F150F603D",
- "Host": "58.16.70.122",
- "Accept-Encoding": "gzip, deflate",
- "name": "HTTP_DECODER_RESULT_3"
- },
- {
- "Tuple4": "192.168.117.60.39655>58.16.70.122.80",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Server": "Apache-Coyote/1.1",
- "Accept-Ranges": "bytes",
- "ETag": "W/\"1703517-1546572172000\"",
- "Last-Modified": "Fri, 04 Jan 2019 03:22:52 GMT",
- "Content-Type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document;charset=UTF-8",
- "Content-Length": "1703517",
- "Date": "Sat, 18 May 2019 01:37:00 GMT",
- "name": "HTTP_DECODER_RESULT_4"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_get_long_cookie.json b/test/http_decoder/test_result_json/http_get_long_cookie.json
deleted file mode 100644
index de07582..0000000
--- a/test/http_decoder/test_result_json/http_get_long_cookie.json
+++ /dev/null
@@ -1,19 +0,0 @@
-[
- {
- "Tuple4": "202.127.156.91.27282>14.17.32.203.80",
- "method": "GET",
- "uri": "/livemsg?imagemd5=02f5efd8a349c50280f8540b2735bd54&tailroll=1&plugin=1.3.8&pf=out&si=3766845706&url=http%3A%2F%2Fsports.qq.com%2Fa%2F20160106%2F008987.htm&soid=CA7F9C5B0120568CDC2F68726300&chid=0&ping_data=dXNlcl9pbmZvPXVCWDluVDg5SFJhOUFQK0JQVGdKRUxVYi9Kdz0&t=0&iptype=0&vptag=&pid=7F993E38C0E676ACC07DE764D1F3DEF56AA8F90A&adtype=LD&oadid=6012&ev=3236&l=4020&ufc_filter=0&imagelog=1&pid2=7F993E38C0E676ACC07DE764D1F3DEF56AA8F90A&mt=15000&coverid=&reqtime=1452071981&requestl=4020&isthirdip=0&cid=0&isfloatindex=0&o=100654557&lcount=2&refluence=4020&from=0&vid=m01794rm5ej&cip=202.127.156.91&aver=0&ip_filter=0&adlength=30000&tagid=&v=TencentPlayerOutV3.2.19.346&live=0&dura=105",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "livep.l.qq.com",
- "Connection": "keep-alive",
- "User-Agent": "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36",
- "Accept": "*/*",
- "Referer": "http://imgcache.qq.com/tencentvideo_v1/player/TPout.swf?max_age=86400&v=20140714",
- "Accept-Encoding": "gzip,deflate,sdch",
- "Accept-Language": "zh-CN,zh;q=0.8",
- "Cookie": "flashuser=95621BA8CB862E09; piao_city=179; lv_irt_id=3628e1bbe25a6c941da9fac02ec2df8b; cm_cookie=V1,10017&-EP5mRruXhQarsCl5LD-2YzgjVTvyr2K&AQEBh7uoLMUB9lnaB5Tz9XdYnGIWflXmsDrU&150723&150723,10035&7t-tEmfJ076VAsM9&AQEBh7uoLMUB9lnc4tpW7vbazqdrRdBYOUCi&150724&150807,110054&ucO0Z0gctNn3&AQEBh7uoLMUB9llxMNl45F3RAIsKK0iMOJAG&150716&151008,10040&ACZ1r0A70NaEFcGT&AQEBh7uoLMUB9lmVgSoTwuuXZi896zSVsXIF&150818&151014,110015&1&AQEBh7uoLMUB9lkt2LUHO6ARwODHLI_Y51rj&150928&151103,10037&1433388364186289251984&AQEBh7uoLMUB9llIBencOqTAEh2aQ2SURSSQ&150909&151110,10011&jL40Z03uUFI0&AQEBh7uoLMUB9lkfw2sJVNx9g12Fzs12rPSN&150717&151125,10016&F64E6LFZs0W&AQEBh7uoLMUB9llE4yoPFNUykSj7WKaRK5lH&150805&151127,10019&WQAO-C1K9qI5OP8W_t2pSw&AQEBh7uoLMUB9llhpZE87GmOk3XGo_MJgV6K&150826&151130,10015&820490997316506147&AQEBh7uoLMUB9llXiynsGYRhMO3XuPnkuHUt&150715&151201,10012&x3X1yY6b&AQEBh7uoLMUB9ll9mraU_LJCDBYsE0Sbk_V9&151202&151202,110065&ucO0Z0gctNn3&AQEBh7uoLMUB9lkJcK3KDBQTKF0YfZ5wB7r5&150716&151203,110066&jL40Z03uUFI0&AQEBh7uoLMUB9lnyvKSYhcJD1X_rSs_DLVWx&150916&151221,10013&ePyYB2MSKa0TCbebpxKjmU&AQEBh7uoLMUB9ln6_6nGNidqml4nFKXhtE58&151221&151221,110061&d9cfa518d82abee&AQEBh7uoLMUB9llj2NYzmCjxaLWXALTcAGIH&150818&151224,10038&CAESEPZbUhToZJ39CS9MlgXGUSQ&AQEBh7uoLMUB9lmhnrDM5lIGtl6vc1NxMD6F&151110&151224,10077&820490997316506147&AQEBh7uoLMUB9lmkUdUe2xSHGkvM0IRu9Jt9&151214&151228,10008&0yPSvk92ie1nhB8wTUlTq&AQEBh7uoLMUB9lnL5ZCYvXJNvlv53G0CKEkj&150817&151228,10045&0&AQEBh7uoLMUB9llW3v1Vh7W72lv14RlAjUXn&151023&151228,110064&jL40Z03uUFI0&AQEBh7uoLMUB9lkBYuCUDLDrOcGURJcilogv&151016&160104,110069&26d49ecc&AQEBh7uoLMUB9lmlBLTxQY9BkCmimkMFqTo5&151204&160105,10079&B8hGto5y1e3uDXwCMsIun3rjk--dVCof&AQEBh7uoLMUB9llxnFrhDtdNMjZ1hs1il5J4&151214&160105; LHTturn=24; ptisp=ctc; RK=hRWyd82Gd8; pgv_pvi=7567882240; image_md5=bd21d5fb2f401b37cf3a02724dc06545; LTPturn=27; pt2gguin=o0583115900; uin=o0583115900; skey=@Mp9aCinaO; ptcz=10d4b1b7bde835d64663338a8008fd4f81e2c6b5f0ba81a90da3627ee617c7ee; pgv_info=ssid=s4768939310; pgv_pvid=6872592818; o_cookie=583115900; lv_play_index_textAd=47; lv_play_indexl.=32; dc_vplaying=1; LKBturn=29; Lturn=29; adid=583115900; appuser=95621BA8CB862E09; o_minduid=phhdxyNLkxBWMa74VTm5zU4y5EbUv5vR; appuser_95621BA8CB862E09_0=2b7gwp=1453219199_6&2btemv=1455551999_1&2c8311=1453305599_3&2cfx4j=1453651199_3&2cfx9l=1453651199_1&2d49y9=1453823999_2&2d67kl=1454255999_2&2d69mf=1454255999_3&2dxv8l=1455465599_6&2dzhfl=1452614399_1&f_pogvwp=1452095999_1&f_pogvwv=1452095999_2&f_pogw0m=1452095999_1&fd_15bm2t7=1452095999_1&fd_1h2pbsd=1452095999_2&fd_1k6so62=1452095999_1&fd_rhmjmq=1452095999_2&m_roiw0t=1452095999_3&m_xty8wl=1452095999_1&pogree=1452095999_2; TX.boid=100655474=1452072582_1&701041365=1452072585_1; appuser_95621BA8CB862E09_effect_0=fd_1ez2rcc=1452095999_1&fd_qdh7zw=1452095999_1&fd_ul215j=1452095999_1; psessionid=ca7f9c5b_1452071982_583115900_30754; psessiontime=1452071990",
- "name": "HTTP_DECODER_RESULT_1"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_get_malformed.json b/test/http_decoder/test_result_json/http_get_malformed.json
deleted file mode 100644
index 2cae230..0000000
--- a/test/http_decoder/test_result_json/http_get_malformed.json
+++ /dev/null
@@ -1,38 +0,0 @@
-[
- {
- "Tuple4": "192.168.140.10.49160>5.8.88.25.80",
- "Host": "5.8.88.25",
- "Connection": "keep-alive",
- "Upgrade-Insecure-Requests": "1",
- "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
- "Accept-Language": "en-US;q=0.6,en;q=0.4",
- "Accept-Encoding": "gzip, deflate",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.4.2.37788>104.197.3.80.80",
- "method": "GET",
- "uri": "/",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "connectivity-check.ubuntu.com",
- "Accept": "*/*",
- "Connection": "close",
- "name": "HTTP_DECODER_RESULT_2"
- },
- {
- "Tuple4": "192.168.4.2.37788>104.197.3.80.80",
- "res_version": "1.1",
- "res_status": "No Content",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 204,
- "Date": "Wed, 12 Sep 2018 19:49:21 GMT",
- "Server": "Apache/2.4.18 (Ubuntu)",
- "X-NetworkManager-Status": "online",
- "Connection": "close",
- "name": "HTTP_DECODER_RESULT_3"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_get_multi_trans.json b/test/http_decoder/test_result_json/http_get_multi_trans.json
deleted file mode 100644
index 3a499d7..0000000
--- a/test/http_decoder/test_result_json/http_get_multi_trans.json
+++ /dev/null
@@ -1,140 +0,0 @@
-[
- {
- "Tuple4": "192.168.50.18.60400>192.168.42.1.80",
- "method": "GET",
- "uri": "/account/login.htm",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.pro.testin.cn",
- "Connection": "keep-alive",
- "Upgrade-Insecure-Requests": "1",
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
- "Accept-Encoding": "gzip, deflate",
- "Accept-Language": "zh-CN,zh;q=0.9",
- "Cookie": "Hm_lvt_1b8c1194303ef64e02f003f0cb8a1906=1653898514; _gcl_au=1.1.1010551181.1653898515; _ga=GA1.2.1419569885.1653898515; _gid=GA1.2.2007113907.1653898515; authtoken_pro=tea83b3beef07488bb8571811385db42; userId_pro=1160; pid_pro=1; eid_pro=1; pname_pro=name; Hm_lpvt_1b8c1194303ef64e02f003f0cb8a1906=1653961741; JSESSIONID=531AACA879469EDAB825E28113490E10",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.50.18.60400>192.168.42.1.80",
- "res_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 302,
- "Server": "nginx/1.16.1",
- "Date": "Tue, 31 May 2022 06:41:23 GMT",
- "Content-Length": "0",
- "Connection": "keep-alive",
- "Set-Cookie": "JSESSIONID=CFAB9C0C3F4D9D6C2837E3BA9425AFCA; Path=/; HttpOnly",
- "Set-Cookie1": "authtoken_pro=tea83b3beef07488bb8571811385db42; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Set-Cookie2": "userId_pro=1160; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Location": "http://test.pro.testin.cn/enterprise/index.htm",
- "Content-Language": "zh-CN",
- "name": "HTTP_DECODER_RESULT_2"
- },
- {
- "Tuple4": "192.168.50.18.60400>192.168.42.1.80",
- "method": "GET",
- "uri": "/enterprise/index.htm",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.pro.testin.cn",
- "Connection": "keep-alive",
- "Upgrade-Insecure-Requests": "1",
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
- "Accept-Encoding": "gzip, deflate",
- "Accept-Language": "zh-CN,zh;q=0.9",
- "Cookie": "Hm_lvt_1b8c1194303ef64e02f003f0cb8a1906=1653898514; _gcl_au=1.1.1010551181.1653898515; _ga=GA1.2.1419569885.1653898515; _gid=GA1.2.2007113907.1653898515; authtoken_pro=tea83b3beef07488bb8571811385db42; userId_pro=1160; pid_pro=1; eid_pro=1; pname_pro=name; Hm_lpvt_1b8c1194303ef64e02f003f0cb8a1906=1653961741; JSESSIONID=CFAB9C0C3F4D9D6C2837E3BA9425AFCA",
- "name": "HTTP_DECODER_RESULT_3"
- },
- {
- "Tuple4": "192.168.50.18.60400>192.168.42.1.80",
- "res_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 302,
- "Server": "nginx/1.16.1",
- "Date": "Tue, 31 May 2022 06:41:23 GMT",
- "Content-Length": "0",
- "Connection": "keep-alive",
- "Set-Cookie": "authtoken_pro=tea83b3beef07488bb8571811385db42; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Set-Cookie1": "userId_pro=1160; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Location": "http://test.pro.testin.cn/enterprise/into.htm?eid=1",
- "Content-Language": "zh-CN",
- "name": "HTTP_DECODER_RESULT_4"
- },
- {
- "Tuple4": "192.168.50.18.60400>192.168.42.1.80",
- "method": "GET",
- "uri": "/enterprise/into.htm?eid=1",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.pro.testin.cn",
- "Connection": "keep-alive",
- "Upgrade-Insecure-Requests": "1",
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
- "Accept-Encoding": "gzip, deflate",
- "Accept-Language": "zh-CN,zh;q=0.9",
- "Cookie": "Hm_lvt_1b8c1194303ef64e02f003f0cb8a1906=1653898514; _gcl_au=1.1.1010551181.1653898515; _ga=GA1.2.1419569885.1653898515; _gid=GA1.2.2007113907.1653898515; authtoken_pro=tea83b3beef07488bb8571811385db42; userId_pro=1160; pid_pro=1; eid_pro=1; pname_pro=name; Hm_lpvt_1b8c1194303ef64e02f003f0cb8a1906=1653961741; JSESSIONID=CFAB9C0C3F4D9D6C2837E3BA9425AFCA",
- "name": "HTTP_DECODER_RESULT_5"
- },
- {
- "Tuple4": "192.168.50.18.60400>192.168.42.1.80",
- "res_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 302,
- "Server": "nginx/1.16.1",
- "Date": "Tue, 31 May 2022 06:41:23 GMT",
- "Content-Length": "0",
- "Connection": "keep-alive",
- "Set-Cookie": "authtoken_pro=tea83b3beef07488bb8571811385db42; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Set-Cookie1": "userId_pro=1160; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Location": "http://test.pro.testin.cn/realmachine/index.htm",
- "Content-Language": "zh-CN",
- "name": "HTTP_DECODER_RESULT_6"
- },
- {
- "Tuple4": "192.168.50.18.60400>192.168.42.1.80",
- "method": "GET",
- "uri": "/realmachine/index.htm",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "test.pro.testin.cn",
- "Connection": "keep-alive",
- "Upgrade-Insecure-Requests": "1",
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
- "Accept-Encoding": "gzip, deflate",
- "Accept-Language": "zh-CN,zh;q=0.9",
- "Cookie": "Hm_lvt_1b8c1194303ef64e02f003f0cb8a1906=1653898514; _gcl_au=1.1.1010551181.1653898515; _ga=GA1.2.1419569885.1653898515; _gid=GA1.2.2007113907.1653898515; authtoken_pro=tea83b3beef07488bb8571811385db42; userId_pro=1160; pid_pro=1; eid_pro=1; pname_pro=name; Hm_lpvt_1b8c1194303ef64e02f003f0cb8a1906=1653961741; JSESSIONID=CFAB9C0C3F4D9D6C2837E3BA9425AFCA",
- "name": "HTTP_DECODER_RESULT_7"
- },
- {
- "Tuple4": "192.168.50.18.60400>192.168.42.1.80",
- "res_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Server": "nginx/1.16.1",
- "Date": "Tue, 31 May 2022 06:41:23 GMT",
- "Content-Type": "text/html;charset=UTF-8",
- "Transfer-Encoding": "chunked",
- "Connection": "keep-alive",
- "Vary": "Accept-Encoding",
- "Set-Cookie": "authtoken_pro=tea83b3beef07488bb8571811385db42; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Set-Cookie1": "userId_pro=1160; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Set-Cookie2": "pid_pro=1; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Set-Cookie3": "eid_pro=1; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Set-Cookie4": "pname_pro=name; Max-Age=28800; Expires=Tue, 31-May-2022 14:41:23 GMT; Domain=testin.cn; Path=/; HttpOnly",
- "Content-Language": "zh-CN",
- "Content-Encoding": "gzip",
- "name": "HTTP_DECODER_RESULT_8"
- }
-]
diff --git a/test/http_decoder/test_result_json/http_get_req_pipeline.json b/test/http_decoder/test_result_json/http_get_req_pipeline.json
deleted file mode 100644
index fca5f91..0000000
--- a/test/http_decoder/test_result_json/http_get_req_pipeline.json
+++ /dev/null
@@ -1,60 +0,0 @@
-[
- {
- "Tuple4": "192.168.40.81.52802>192.168.40.137.80",
- "method": "GET",
- "uri": "/aa.mp4?asf=sdaf",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "113.31.27.226",
- "Connection": "keep-alive",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
- "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1636.2 Safari/537.36",
- "Accept-Encoding": "gzip,deflate,sdch",
- "Accept-Language": "zh-CN,zh;q=0.8",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.40.81.52802>192.168.40.137.80",
- "method": "GET",
- "uri": "/fetch_ldns.png",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "ns.pb.cachecn.net",
- "Connection": "keep-alive",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
- "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1636.2 Safari/537.36",
- "Accept-Encoding": "gzip,deflate,sdch",
- "Accept-Language": "zh-CN,zh;q=0.8",
- "name": "HTTP_DECODER_RESULT_2"
- },
- {
- "Tuple4": "192.168.40.81.52802>192.168.40.137.80",
- "method": "GET",
- "uri": "/40x.jpg",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "ns.pb.cachecn.net",
- "Connection": "keep-alive",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
- "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1636.2 Safari/537.36",
- "Accept-Encoding": "gzip,deflate,sdch",
- "Accept-Language": "zh-CN,zh;q=0.8",
- "name": "HTTP_DECODER_RESULT_3"
- },
- {
- "Tuple4": "192.168.40.81.52802>192.168.40.137.80",
- "res_version": "1.0",
- "res_status": "File not found",
- "major_version": 1,
- "minor_version": 0,
- "status_code": 404,
- "Server": "SimpleHTTP/0.6 Python/2.7.5",
- "Date": "Wed, 25 Oct 2023 06:43:35 GMT",
- "Content-Type": "text/html",
- "Connection": "close",
- "name": "HTTP_DECODER_RESULT_4"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_get_single_trans.json b/test/http_decoder/test_result_json/http_get_single_trans.json
deleted file mode 100644
index 988f0b7..0000000
--- a/test/http_decoder/test_result_json/http_get_single_trans.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "Tuple4": "192.168.38.73.50806>192.168.40.137.80",
- "method": "GET",
- "uri": "/index.html",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "192.168.40.137",
- "User-Agent": "curl/7.79.1",
- "Accept": "*/*",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.38.73.50806>192.168.40.137.80",
- "res_version": "1.0",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 0,
- "status_code": 200,
- "Server": "SimpleHTTP/0.6 Python/2.7.5",
- "Date": "Thu, 30 Nov 2023 08:42:24 GMT",
- "Content-type": "text/html",
- "Content-Length": "144",
- "Last-Modified": "Thu, 30 Nov 2023 08:38:54 GMT",
- "name": "HTTP_DECODER_RESULT_2"
- }
-]
diff --git a/test/http_decoder/test_result_json/http_header_value_empty.json b/test/http_decoder/test_result_json/http_header_value_empty.json
deleted file mode 100644
index 3310002..0000000
--- a/test/http_decoder/test_result_json/http_header_value_empty.json
+++ /dev/null
@@ -1,30 +0,0 @@
-[
- {
- "Tuple4": "192.168.131.33.47164>192.168.204.67.4445",
- "method": "POST",
- "uri": "http://:4445/RPC2",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "ulxmlrpcpp/1.7.5",
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Date": "Sat Sep 7 10:04:57 2019",
- "Content-Length": "468",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.131.33.47164>192.168.204.67.4445",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Transfer-Encoding": "chunked",
- "X-Powered-By": "ulxmlrpcpp/1.7.4",
- "Date": "Sat Sep 7 01:09:08 2019",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_headers_exceed_maximum.json b/test/http_decoder/test_result_json/http_headers_exceed_maximum.json
deleted file mode 100644
index fac220b..0000000
--- a/test/http_decoder/test_result_json/http_headers_exceed_maximum.json
+++ /dev/null
@@ -1,45 +0,0 @@
-[
- {
- "Tuple4": "10.0.0.1.61462>10.0.0.2.80",
- "method": "GET",
- "uri": "/x/xx/xxxxxxxxxxxxxxxxxxx/x/xxxxxx/xxxxxxxxxxxxxxx?xxx=1&xxx=1&x=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&vmf=xxxxxxxxxx.xxx.xxx.xxx&ce=UTF-8&ns=xxxxxxxxxx&pageName=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&g=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.jsp&r=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&events=xxxxxxxxxxxxxxxxxxxxxxxxxxx&products=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&v1=xxxxxxxxxxxxxxx&v2=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&v17=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&c49=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&AQE=1",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "xxxxx.xxxxxxxx.xxxxxxxxxx.xxx",
- "Connection": "keep-alive",
- "Accept": "image/webp,*/*;q=0.8",
- "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36",
- "Referer": "http://www.xxxxxxxxxx.xxx/xx/xxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxx.jsp",
- "Accept-Encoding": "gzip,deflate,sdch",
- "Accept-Language": "en-US,en;q=0.8,en-GB;q=0.6",
- "Cookie": "xxxxxxxxxxxxxxxxxxx=ie; xxxxxxxxxxxxxxxxxxxxxx=true; lp=xxxxxx; rememberUn=false; xxx.xxxxxxxxxx.xxxxxxxxxx=xx; xxxxx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; autocomplete=1; xxxx=xxxx; xxxx=xxxxv1|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; xxxxxx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "10.0.0.1.61462>10.0.0.2.80",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Date": "Mon, 30 Jun 2014 13:35:21 GMT",
- "Server": "xxxxxxxxxxxxxxxxx",
- "Access-Control-Allow-Origin": "*",
- "Set-Cookie": "xxxx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; Expires=Wed, 29 Jun 2016 13:35:21 GMT; Domain=.xxxxxxxxxx.xxx; Path=/",
- "X-C": "ms-4.9",
- "Expires": "Sun, 29 Jun 2014 13:35:21 GMT",
- "Last-Modified": "Tue, 01 Jul 2014 13:35:21 GMT",
- "Cache-Control": "no-cache, no-store, max-age=0, no-transform, private",
- "Pragma": "no-cache",
- "ETag": "\"xxxxxxxxxxxxxxxxxxxxxx\"",
- "Vary": "*",
- "P3P": "policyref=\"/w3c/p3p.xml\", CP=\"NOI DSP COR NID PSA OUR IND COM NAV STA\"",
- "xserver": "xxxxxx",
- "Content-Length": "43",
- "Keep-Alive": "timeout=15",
- "Connection": "Keep-Alive",
- "Content-Type": "image/gif",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_multi_parse_error.json b/test/http_decoder/test_result_json/http_multi_parse_error.json
deleted file mode 100644
index c61f70a..0000000
--- a/test/http_decoder/test_result_json/http_multi_parse_error.json
+++ /dev/null
@@ -1,197 +0,0 @@
-[
- {
- "Tuple4": "192.168.131.33.47164>192.168.204.67.4445",
- "method": "POST",
- "uri": "http://:4445/RPC2",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "ulxmlrpcpp/1.7.5",
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Date": "Sat Sep 7 10:04:57 2019",
- "Content-Length": "468",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.131.33.47164>192.168.204.67.4445",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Transfer-Encoding": "chunked",
- "X-Powered-By": "ulxmlrpcpp/1.7.4",
- "Date": "Sat Sep 7 01:09:08 2019",
- "name": "HTTP_DECODER_RESULT_2"
- },
- {
- "Tuple4": "192.168.131.33.47166>192.168.204.67.4445",
- "method": "POST",
- "uri": "http://:4445/RPC2",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "ulxmlrpcpp/1.7.5",
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Date": "Sat Sep 7 10:05:05 2019",
- "Content-Length": "468",
- "name": "HTTP_DECODER_RESULT_3"
- },
- {
- "Tuple4": "192.168.131.33.47166>192.168.204.67.4445",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Transfer-Encoding": "chunked",
- "X-Powered-By": "ulxmlrpcpp/1.7.4",
- "Date": "Sat Sep 7 01:09:16 2019",
- "name": "HTTP_DECODER_RESULT_4"
- },
- {
- "Tuple4": "192.168.131.33.47172>192.168.204.67.4445",
- "method": "POST",
- "uri": "http://:4445/RPC2",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "ulxmlrpcpp/1.7.5",
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Date": "Sat Sep 7 10:05:13 2019",
- "Content-Length": "468",
- "name": "HTTP_DECODER_RESULT_5"
- },
- {
- "Tuple4": "192.168.131.33.47172>192.168.204.67.4445",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Transfer-Encoding": "chunked",
- "X-Powered-By": "ulxmlrpcpp/1.7.4",
- "Date": "Sat Sep 7 01:09:24 2019",
- "name": "HTTP_DECODER_RESULT_6"
- },
- {
- "Tuple4": "192.168.131.33.47194>192.168.204.67.4445",
- "method": "POST",
- "uri": "http://:4445/RPC2",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "ulxmlrpcpp/1.7.5",
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Date": "Sat Sep 7 10:05:22 2019",
- "Content-Length": "306",
- "name": "HTTP_DECODER_RESULT_7"
- },
- {
- "Tuple4": "192.168.131.33.47194>192.168.204.67.4445",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Connection": "Close",
- "Transfer-Encoding": "chunked",
- "X-Powered-By": "ulxmlrpcpp/1.7.4",
- "Date": "Sat Sep 7 01:09:32 2019",
- "name": "HTTP_DECODER_RESULT_8"
- },
- {
- "Tuple4": "192.168.131.33.47196>192.168.204.67.4445",
- "method": "POST",
- "uri": "http://:4445/RPC2",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "ulxmlrpcpp/1.7.5",
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Date": "Sat Sep 7 10:05:30 2019",
- "Content-Length": "225",
- "name": "HTTP_DECODER_RESULT_9"
- },
- {
- "Tuple4": "192.168.131.33.47196>192.168.204.67.4445",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Transfer-Encoding": "chunked",
- "X-Powered-By": "ulxmlrpcpp/1.7.4",
- "Date": "Sat Sep 7 01:09:42 2019",
- "name": "HTTP_DECODER_RESULT_10"
- },
- {
- "Tuple4": "192.168.131.33.47200>192.168.204.67.4445",
- "method": "POST",
- "uri": "http://:4445/RPC2",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "ulxmlrpcpp/1.7.5",
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Date": "Sat Sep 7 10:05:39 2019",
- "Content-Length": "461",
- "name": "HTTP_DECODER_RESULT_11"
- },
- {
- "Tuple4": "192.168.131.33.47200>192.168.204.67.4445",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Transfer-Encoding": "chunked",
- "X-Powered-By": "ulxmlrpcpp/1.7.4",
- "Date": "Sat Sep 7 01:09:50 2019",
- "name": "HTTP_DECODER_RESULT_12"
- },
- {
- "Tuple4": "192.168.131.33.47214>192.168.204.67.4445",
- "method": "POST",
- "uri": "http://:4445/RPC2",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "ulxmlrpcpp/1.7.5",
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Date": "Sat Sep 7 10:05:47 2019",
- "Content-Length": "461",
- "name": "HTTP_DECODER_RESULT_13"
- },
- {
- "Tuple4": "192.168.131.33.47214>192.168.204.67.4445",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Connection": "Close",
- "Content-Type": "text/xml",
- "Transfer-Encoding": "chunked",
- "X-Powered-By": "ulxmlrpcpp/1.7.4",
- "Date": "Sat Sep 7 01:09:58 2019",
- "name": "HTTP_DECODER_RESULT_14"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_no_content_length.json b/test/http_decoder/test_result_json/http_no_content_length.json
deleted file mode 100644
index 61613ea..0000000
--- a/test/http_decoder/test_result_json/http_no_content_length.json
+++ /dev/null
@@ -1,40 +0,0 @@
-[
- {
- "Tuple4": "10.0.0.1.50384>10.0.0.2.80",
- "method": "GET",
- "uri": "/js/xxxxxx.js",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "xxxxxxx.xxxxxx.xx",
- "User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3",
- "Accept": "*/*",
- "Accept-Language": "en-us,en;q=0.5",
- "Accept-Encoding": "gzip,deflate",
- "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7",
- "Keep-Alive": "115",
- "Connection": "keep-alive",
- "Referer": "http://www.xxxxxxxx.com/xxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxx.html",
- "Cookie": "trafic_ranking=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "10.0.0.1.50384>10.0.0.2.80",
- "res_version": "1.0",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 0,
- "status_code": 200,
- "Date": "Mon, 10 May 2010 08:31:02 GMT",
- "Server": "Apache",
- "Content-type": "application/x-javascript",
- "Expires": "Thu, 11 Jan 1973 16:00:00 GMT",
- "Last-Modified": "Mon, 10 May 2010 08:31:02 GMT",
- "Cache-Control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
- "Pragma": "no-cache",
- "P3P": "policyref=\"/w3c/p3p.xml\", CP=\"ALL IND DSP COR ADM CONo CUR IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI\"",
- "Set-Cookie": "trafic_ranking=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; expires=Sun, 11-Jan-2037 14:00:00 GMT; path=/; domain=.xxxxxx.xx",
- "connection": "close",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_over_pppoe.json b/test/http_decoder/test_result_json/http_over_pppoe.json
deleted file mode 100644
index e2e459d..0000000
--- a/test/http_decoder/test_result_json/http_over_pppoe.json
+++ /dev/null
@@ -1,30 +0,0 @@
-[
- {
- "Tuple4": "2a00:5e80:101:212d:504:7b1:2572:db22.37034>2606:f200:0:7:bad:f00d:d00d:1.80",
- "method": "GET",
- "uri": "/",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "curl/7.34.0",
- "Host": "ipv6.icanhazip.com",
- "Accept": "*/*",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "2a00:5e80:101:212d:504:7b1:2572:db22.37034>2606:f200:0:7:bad:f00d:d00d:1.80",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Date": "Thu, 02 Jan 2014 08:38:06 GMT",
- "Server": "Apache",
- "Content-Length": "38",
- "Content-Type": "text/plain; charset=UTF-8",
- "X-RTFM": "Learn about this site at http://bit.ly/14DAh2o and don't abuse the service",
- "X-YOU-SHOULD-APPLY-FOR-A-JOB": "If you're reading this, apply here: http://rackertalent.com/",
- "X-ICANHAZNODE": "icanhazip1.nugget",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_over_tcp_keepalive.json b/test/http_decoder/test_result_json/http_over_tcp_keepalive.json
deleted file mode 100644
index dd428ae..0000000
--- a/test/http_decoder/test_result_json/http_over_tcp_keepalive.json
+++ /dev/null
@@ -1,39 +0,0 @@
-[
- {
- "Tuple4": "192.168.56.66.55356>60.190.243.167.80",
- "method": "GET",
- "uri": "/",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "www.yumi.com",
- "Connection": "keep-alive",
- "Cache-Control": "max-age=0",
- "Upgrade-Insecure-Requests": "1",
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
- "Accept-Encoding": "gzip, deflate",
- "Accept-Language": "zh-CN,zh;q=0.9",
- "Cookie": "UM_distinctid=17d37645f9c1a1-0281befa480414-b7a1a38-144000-17d37645f9d336; CNZZDATA1258295942=1778021578-1637307701-%7C1637307701; Hm_lvt_a6dc86f6e27435039966e994bd7f0792=1637311872; yumi_sid=JaMlFyTA07ikpZjTHZsRTWyGdMqFyFy%2B4hXGj%2FSoQRJYbrfBUQuOTIMZ8jUGmugDC594AYcbeRhg75xidhRxCW4zq9Y0gPwTmkhq4LQuprp4DrtDMLI3L5wLMqkG%2FuAX1aVFPfud5GRNxNFTSp%2Bos%2FKhfCFKhfN5%2BuT2xyVYSAjy2ftiSOGDi7FN13icuuyPhFCoWqOxWVu1CZ3AiYPJssv6kXqiR6paf75icdeROZY2bkFCDKkcIQcPy7o9EKpkL1Mbimeb40JMg9hUsWdmyhDkzVjSHJmC4z2ujpzSDTsjRIQOnxTy1PHZi%2FMwg3uyGLCusDwqbagpO4pcgEJ5ONDy%2BGwO7FmHXU3mFfR56c9HxxiiuLPnBt9ErpqqWKsxH6lUrlHaUp6AzyrgX7PFdksiMfPSk6%2F3%2FWOYr%2FkYuI4fopw7z8%2FLhxC9AiLr9Czz3MngFUGzkmaMVvAhZOSPzg%3D%3D; Hm_lpvt_a6dc86f6e27435039966e994bd7f0792=1637313847",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.56.66.55356>60.190.243.167.80",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Server": "Tengine",
- "Date": "Fri, 19 Nov 2021 09:57:40 GMT",
- "Content-Type": "text/html",
- "Transfer-Encoding": "chunked",
- "Connection": "keep-alive",
- "Vary": "Accept-Encoding",
- "Set-Cookie": "yumi_sid=V6EhlyovLp46BBzQWLVOBg%2F73RUD5E%2FfaRlkR8RLa8aKhGrPVdVHvHfFWRKKd9wZ%2BfFF4Tb2wnVOOn%2F9iXbBpyHsbxjmUqnbFSoAX7QIJjt%2BEEjAL3M7O7VSpAyMnrFKt7qu46oXV%2B6teyyTUY7Ucy285v6otvZcu8bN%2B5YxKZ1gYh56iJ0bHxnrnQ0vvAx3l%2BLwfw2y0c5IaF2tjrL%2Fn83nrHsPoYYRWAR2zLIXD%2FEMKRtyerwsM5LKhZZteFGWD2w%2B15alKF5T65i0lPvPcAdaqpceL5xz23twQULhs1tIJsOfJZ8JudLlRy6x3DvxQYqRe2xTCex5c77zJqfq%2FdryNbBycIq9gf6C2hXDRwDqRqVgXDMadwGnooKFkv%2ByCbohjHyBCZJypBcYFmglYhin23UC9i%2B%2BOA%2FxhlxcnU8kT8udpTNCktSmF950SQLOmvdvYuXGydKs8v05cxe5fg%3D%3D; expires=Fri, 19-Nov-2021 11:57:38 GMT; Max-Age=7200; path=/; domain=.yumi.com",
- "Pragma": "no-cache",
- "Cache-Control": "no-store",
- "Content-Encoding": "gzip",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_over_tls.json b/test/http_decoder/test_result_json/http_over_tls.json
deleted file mode 100644
index 32960f8..0000000
--- a/test/http_decoder/test_result_json/http_over_tls.json
+++ /dev/null
@@ -1,2 +0,0 @@
-[
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_post_multipart_form_data.json b/test/http_decoder/test_result_json/http_post_multipart_form_data.json
deleted file mode 100644
index c728970..0000000
--- a/test/http_decoder/test_result_json/http_post_multipart_form_data.json
+++ /dev/null
@@ -1,94 +0,0 @@
-[
- {
- "Tuple4": "192.168.8.97.11371>192.168.57.14.8080",
- "method": "GET",
- "uri": "/fileupload/",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "192.168.57.14:8080",
- "Connection": "keep-alive",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
- "User-Agent": "Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36",
- "Accept-Encoding": "gzip,deflate,sdch",
- "Accept-Language": "zh-CN,zh;q=0.8",
- "Cookie": "JSESSIONID=969AC5FBD069EE6218EB10513726B244; JSESSIONID=400CC78DF5784F303702CC7F02C6122C",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.8.97.11371>192.168.57.14.8080",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Server": "Apache-Coyote/1.1",
- "Content-Type": "text/html;charset=UTF-8",
- "Content-Length": "468",
- "Date": "Thu, 28 Mar 2019 08:13:33 GMT",
- "name": "HTTP_DECODER_RESULT_2"
- },
- {
- "Tuple4": "192.168.8.97.11371>192.168.57.14.8080",
- "method": "GET",
- "uri": "/fileupload/",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "192.168.57.14:8080",
- "Connection": "keep-alive",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
- "User-Agent": "Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36",
- "Accept-Encoding": "gzip,deflate,sdch",
- "Accept-Language": "zh-CN,zh;q=0.8",
- "Cookie": "JSESSIONID=969AC5FBD069EE6218EB10513726B244; JSESSIONID=400CC78DF5784F303702CC7F02C6122C",
- "name": "HTTP_DECODER_RESULT_3"
- },
- {
- "Tuple4": "192.168.8.97.11371>192.168.57.14.8080",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Server": "Apache-Coyote/1.1",
- "Content-Type": "text/html;charset=UTF-8",
- "Content-Length": "468",
- "Date": "Thu, 28 Mar 2019 08:13:33 GMT",
- "name": "HTTP_DECODER_RESULT_4"
- },
- {
- "Tuple4": "192.168.8.97.11371>192.168.57.14.8080",
- "method": "POST",
- "uri": "/fileupload/servlet/UploadHandleServlet",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "192.168.57.14:8080",
- "Connection": "keep-alive",
- "Content-Length": "449",
- "Cache-Control": "max-age=0",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
- "Origin": "http://192.168.57.14:8080",
- "User-Agent": "Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36",
- "Content-Type": "multipart/form-data; boundary=----WebKitFormBoundaryAe47vGj7ybAe6RwO",
- "Referer": "http://192.168.57.14:8080/fileupload/",
- "Accept-Encoding": "gzip,deflate,sdch",
- "Accept-Language": "zh-CN,zh;q=0.8",
- "Cookie": "JSESSIONID=969AC5FBD069EE6218EB10513726B244; JSESSIONID=400CC78DF5784F303702CC7F02C6122C",
- "name": "HTTP_DECODER_RESULT_5"
- },
- {
- "Tuple4": "192.168.8.97.11371>192.168.57.14.8080",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Server": "Apache-Coyote/1.1",
- "Content-Type": "text/html;charset=UTF-8",
- "Content-Length": "144",
- "Date": "Thu, 28 Mar 2019 08:13:37 GMT",
- "name": "HTTP_DECODER_RESULT_6"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_req_1byte_sliding_window.json b/test/http_decoder/test_result_json/http_req_1byte_sliding_window.json
deleted file mode 100644
index 1612574..0000000
--- a/test/http_decoder/test_result_json/http_req_1byte_sliding_window.json
+++ /dev/null
@@ -1,29 +0,0 @@
-[
- {
- "Tuple4": "192.168.40.137.46180>192.168.42.40.80",
- "method": "GET",
- "uri": "/index.html",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "Wget/1.14 (linux-gnu)",
- "Accept": "*/*",
- "Host": "192.168.42.40",
- "Connection": "Keep-Alive",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.40.137.46180>192.168.42.40.80",
- "res_version": "1.0",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 0,
- "status_code": 200,
- "Server": "SimpleHTTP/0.6 Python/2.7.5",
- "Date": "Fri, 29 Dec 2023 09:11:12 GMT",
- "Content-type": "text/html",
- "Content-Length": "144",
- "Last-Modified": "Fri, 29 Dec 2023 08:50:53 GMT",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_res_1byte_sliding_window.json b/test/http_decoder/test_result_json/http_res_1byte_sliding_window.json
deleted file mode 100644
index 845e1b2..0000000
--- a/test/http_decoder/test_result_json/http_res_1byte_sliding_window.json
+++ /dev/null
@@ -1,29 +0,0 @@
-[
- {
- "Tuple4": "192.168.42.40.36338>192.168.40.137.80",
- "method": "GET",
- "uri": "/index.html",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "User-Agent": "Wget/1.14 (linux-gnu)",
- "Accept": "*/*",
- "Host": "192.168.40.137",
- "Connection": "Keep-Alive",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.42.40.36338>192.168.40.137.80",
- "res_version": "1.0",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 0,
- "status_code": 200,
- "Server": "SimpleHTTP/0.6 Python/2.7.5",
- "Date": "Fri, 29 Dec 2023 09:32:21 GMT",
- "Content-type": "text/html",
- "Content-Length": "144",
- "Last-Modified": "Fri, 29 Dec 2023 08:50:53 GMT",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_res_gzip.json b/test/http_decoder/test_result_json/http_res_gzip.json
deleted file mode 100644
index 403a559..0000000
--- a/test/http_decoder/test_result_json/http_res_gzip.json
+++ /dev/null
@@ -1,39 +0,0 @@
-[
- {
- "Tuple4": "192.168.69.2.34059>192.168.69.1.80",
- "method": "GET",
- "uri": "/test/ethereal.html",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "cerberus",
- "User-Agent": "Mozilla/5.0 (X11; U; Linux ppc; rv:1.7.3) Gecko/20041004 Firefox/0.10.1",
- "Accept": "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5",
- "Accept-Language": "en-us,en;q=0.5",
- "Accept-Encoding": "gzip,deflate",
- "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7",
- "Keep-Alive": "300",
- "Connection": "keep-alive",
- "Cookie": "FGNCLIID=05c04axp1yaqynldtcdiwis0ag1",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.69.2.34059>192.168.69.1.80",
- "res_version": "1.1",
- "res_status": "OK",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Date": "Fri, 29 Oct 2004 05:21:00 GMT",
- "Server": "Apache/2.0.50 (Fedora)",
- "Last-Modified": "Fri, 29 Oct 2004 05:20:21 GMT",
- "ETag": "\"126e1f-6d-371b2f40\"",
- "Accept-Ranges": "bytes",
- "Vary": "Accept-Encoding",
- "Content-Encoding": "gzip",
- "Content-Length": "92",
- "Connection": "close",
- "Content-Type": "text/html; charset=UTF-8",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_trans_pipeline.json b/test/http_decoder/test_result_json/http_trans_pipeline.json
deleted file mode 100644
index e2d18c7..0000000
--- a/test/http_decoder/test_result_json/http_trans_pipeline.json
+++ /dev/null
@@ -1,348 +0,0 @@
-[
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/postinfo.html",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_bin/_vti_aut/author.dll",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_2"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_bin/_vti_aut/author.exe",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_3"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_bin/_vti_aut/dvwssr.dll",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_4"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_bin/_vti_adm/admin.dll",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_5"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_bin/_vti_adm/admin.exe",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_6"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_bin/fpcount.exe?Page=default.asp|Image=3",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_7"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_8"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_9"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_10"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_11"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_12"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_13"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_bin/shtml.dll",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_14"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_bin/shtml.exe",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_15"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_pvt/_x_todo.htm",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_16"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_pvt/_x_todoh.htm",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_17"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_pvt/access.cnf",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_18"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_pvt/administrator.pwd",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_19"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_pvt/administrators.pwd",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_20"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_pvt/authors.pwd",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_21"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "method": "GET",
- "uri": "/_vti_pvt/bots.cnf",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "116.181.2.152",
- "User-Agent": "Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_22"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_23"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_24"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_25"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_26"
- },
- {
- "Tuple4": "223.72.39.14.2545>192.168.182.147.80",
- "res_version": "1.1",
- "res_status": "Not Found",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 404,
- "Server": "nginx",
- "Date": "Thu, 29 Oct 2020 09:59:02 GMT",
- "Content-Type": "text/html",
- "Content-Length": "146",
- "Connection": "keep-alive",
- "name": "HTTP_DECODER_RESULT_27"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_tunnel_for_pop3.json b/test/http_decoder/test_result_json/http_tunnel_for_pop3.json
deleted file mode 100644
index 6d24715..0000000
--- a/test/http_decoder/test_result_json/http_tunnel_for_pop3.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "Tuple4": "192.168.10.58.51798>192.168.10.144.808",
- "method": "CONNECT",
- "uri": "pop.163.com:110",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Content-Length": "0",
- "Accept": "*/*",
- "User-Agent": "Foxmail 7, 1, 3, 48[cn]",
- "Accept-Encoding": "gzip, deflate",
- "Proxy-Connection": "Keep-Alive",
- "Connection": "Keep-Alive",
- "Host": "192.168.10.144",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "192.168.10.58.51798>192.168.10.144.808",
- "res_version": "1.1",
- "res_status": "Connection established",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 200,
- "Proxy-agent": "CCProxy",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_upgrade_http2.json b/test/http_decoder/test_result_json/http_upgrade_http2.json
deleted file mode 100644
index 54d7638..0000000
--- a/test/http_decoder/test_result_json/http_upgrade_http2.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "Tuple4": "10.9.0.2.58038>139.162.123.134.80",
- "method": "GET",
- "uri": "/robots.txt",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "nghttp2.org",
- "User-Agent": "curl/7.61.0",
- "Accept": "*/*",
- "Connection": "Upgrade, HTTP2-Settings",
- "Upgrade": "h2c",
- "HTTP2-Settings": "AAMAAABkAARAAAAAAAIAAAAA",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "10.9.0.2.58038>139.162.123.134.80",
- "res_version": "1.1",
- "res_status": "Switching Protocols",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 101,
- "Connection": "Upgrade",
- "Upgrade": "h2c",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/http_upgrade_websocket.json b/test/http_decoder/test_result_json/http_upgrade_websocket.json
deleted file mode 100644
index 7921ff3..0000000
--- a/test/http_decoder/test_result_json/http_upgrade_websocket.json
+++ /dev/null
@@ -1,37 +0,0 @@
-[
- {
- "Tuple4": "131.179.196.220.59631>131.179.196.46.9696",
- "method": "GET",
- "uri": "/",
- "req_version": "1.1",
- "major_version": 1,
- "minor_version": 1,
- "Host": "spurs.cs.ucla.edu:9696",
- "Connection": "Upgrade",
- "Pragma": "no-cache",
- "Cache-Control": "no-cache",
- "Upgrade": "websocket",
- "Origin": "null",
- "Sec-WebSocket-Version": "13",
- "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36",
- "Accept-Encoding": "gzip, deflate, sdch",
- "Accept-Language": "en-US,en;q=0.8,lv;q=0.6,ru;q=0.4",
- "Cookie": "s_cc=true; s_sq=%5B%5BB%5D%5D; iwe_user_noticecount_urn%3amace%3aucla.edu%3appid%3aperson%3a1223EF7211FC4EC1965579D0B8D85FBA=2; __utma=125574670.1759122974.1407127284.1407127284.1415755402.2; __utmc=125574670; __utma=126236063.2139843507.1390525421.1433785187.1435706244.46; __utmc=126236063; __utmz=126236063.1427934389.33.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _ucla_sso=2015-07-02T11%3A34%3A30-07%3A00; _ga=GA1.2.1759122974.1407127284",
- "Sec-WebSocket-Key": "sgD1adxQ3mk6BbBqab7owA==",
- "Sec-WebSocket-Extensions": "permessage-deflate; client_max_window_bits",
- "name": "HTTP_DECODER_RESULT_1"
- },
- {
- "Tuple4": "131.179.196.220.59631>131.179.196.46.9696",
- "res_version": "1.1",
- "res_status": "Switching Protocols",
- "major_version": 1,
- "minor_version": 1,
- "status_code": 101,
- "Connection": "upgrade",
- "Sec-WebSocket-Accept": "FRh9fmH0UaoLdY5BSFO4hP2Pcjw=",
- "Server": "WebSocket++/0.5.1",
- "Upgrade": "websocket",
- "name": "HTTP_DECODER_RESULT_2"
- }
-] \ No newline at end of file
diff --git a/test/http_decoder/test_result_json/non_http.json b/test/http_decoder/test_result_json/non_http.json
deleted file mode 100644
index 0637a08..0000000
--- a/test/http_decoder/test_result_json/non_http.json
+++ /dev/null
@@ -1 +0,0 @@
-[] \ No newline at end of file
diff --git a/test/plugin_manager/CMakeLists.txt b/test/plugin_manager/CMakeLists.txt
index b096bec..e29fb43 100644
--- a/test/plugin_manager/CMakeLists.txt
+++ b/test/plugin_manager/CMakeLists.txt
@@ -1,12 +1,14 @@
-
-# 开启测试
-
add_executable(gtest_plugin_manager
plugin_manager_gtest_main.cpp
)
+include_directories(${CMAKE_SOURCE_DIR}/src/)
+
target_link_libraries(
gtest_plugin_manager
+ plugin_manager
+ dl
+ "-rdynamic"
gtest
)
diff --git a/test/plugin_manager/plugin_manager_gtest_main.cpp b/test/plugin_manager/plugin_manager_gtest_main.cpp
index 8fb5f51..4ef516c 100644
--- a/test/plugin_manager/plugin_manager_gtest_main.cpp
+++ b/test/plugin_manager/plugin_manager_gtest_main.cpp
@@ -1,10 +1,16 @@
#include <gtest/gtest.h>
+#include "plugin_manager_mock.h"
-TEST(EQ_Test, Always_True) {
- EXPECT_EQ(1, 1);
+TEST(plugin_manager_init, init_none_toml) {
+
+ struct stellar st={0};
+ struct plugin_manager_schema *pm = plugin_manager_init(&st, NULL);
+ ASSERT_TRUE(pm!=NULL);
+ plugin_manager_exit(pm);
}
+
int main(int argc, char ** argv)
{
int ret=0;
diff --git a/test/plugin_manager/plugin_manager_mock.h b/test/plugin_manager/plugin_manager_mock.h
new file mode 100644
index 0000000..e02e686
--- /dev/null
+++ b/test/plugin_manager/plugin_manager_mock.h
@@ -0,0 +1,72 @@
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#include "plugin_manager/plugin_manager.h"
+#include "stellar_on_sapp/stellar_internal.h"
+
+//mock stellar
+struct stellar
+{
+ struct plugin_manager_schema *plug_mgr;
+};
+
+struct packet
+{
+ struct stellar *st;
+ enum packet_type type;
+ unsigned char ip_proto;
+};
+
+struct session
+{
+ struct plugin_manager_runtime *plug_mgr_rt;
+};
+
+struct plugin_manager_schema * stellar_plugin_manager_schema_get(struct stellar *st)
+{
+ return st->plug_mgr;
+}
+
+int stellar_plugin_manager_schema_set(struct stellar *st, struct plugin_manager_schema *pm)
+{
+ st->plug_mgr=pm;
+ return 0;
+}
+
+int stellar_get_worker_thread_num(struct stellar *st)
+{
+ return 1;
+}
+
+int stellar_get_current_thread_id(struct stellar *st)
+{
+ return 0;
+}
+
+struct stellar * packet_stellar_get(struct packet *pkt)
+{
+ return pkt->st;
+}
+
+struct plugin_manager_runtime * session_plugin_manager_runtime_get(struct session *sess)
+{
+ return sess->plug_mgr_rt;
+}
+
+unsigned char packet_get_ip_protocol(struct packet *pkt)
+{
+ if(pkt == NULL)return 0;
+ return pkt->ip_proto;
+}
+
+
+enum packet_type packet_get_type(const struct packet *pkt)
+{
+ return pkt->type;
+}
+
+#ifdef __cplusplus
+}
+#endif