mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
20 lines
726 B
Text
20 lines
726 B
Text
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
# This is loaded by default.
|
|
#@load base/utils/files
|
|
|
|
event connection_established(c: connection)
|
|
{
|
|
print generate_extraction_filename("test-prefix", c, "test-suffix");
|
|
print generate_extraction_filename("test-prefix", c, "");
|
|
print generate_extraction_filename("", c, "test-suffix");
|
|
print generate_extraction_filename("", c, "");
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
print extract_filename_from_content_disposition("attachment; filename=Economy");
|
|
print extract_filename_from_content_disposition("attachment; name=\"US-$ rates\"");
|
|
print extract_filename_from_content_disposition("attachment; filename*=iso-8859-1'en'%A3%20rates");
|
|
}
|