[Zeek] ActiveHTTP Module Error

Blake Moss blake_moss at byu.edu
Tue Jun 4 09:58:25 PDT 2019


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/zeek/attachments/20190604/55fb7efd/attachment.html 


More information about the Zeek mailing list