ActiveHTTP Module Error

Blake Moss <[email protected]>
Newsgroups gmane.comp.security.detection.bro
Message-ID <BYAPR08MB43416D28CDD054A2273CFD71F2150@BYAPR08MB4341.namprd08.prod.outlook.com>
Hi all,

I'm having difficulty using the ActiveHTTP module to make an HTTP request in my zeek script. Here is a snippet of the code and output:

Script:
     print("MAKING A REQUEST");
     when (local response = ActiveHTTP::request([$url="https://google.com", $method="GET"]))
        {
            print(response$msg);
        }
     print ("AFTER WHEN BLOCK");
------------------------------------------------------
Output:
MAKING A REQUEST
AFTER WHEN BLOCK
rm: cannot remove '/tmp/bro-activehttp-9gbMHtTs8u_headers': No such file or directory
rm: cannot remove '/tmp/bro-activehttp-9gbMHtTs8u_body': No such file or directory

Does anyone have an example of using this in a script they would be willing to share? I've looked at the curl command that the active http module generates and that looks good however from looking at the exec module, I'm a little unclear of how this actually gets executed.
Thanks!
- Blake

_______________________________________________
Zeek mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/zeek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.