[Bro] ActiveHTTP
Azoff, Justin S
jazoff at illinois.edu
Sat Jan 28 11:39:26 PST 2017
> On Jan 28, 2017, at 2:32 PM, Dave Crawford <bro at pingtrip.com> wrote:
>
> Hi Justin,
>
> I responded with a follow-up to my original email and temp files are there because I have ‘exit_only_after_terminate’ set to true, so it pauses until I ctrl-c and the tmp files are then deleted.
>
> -Dave
No, the files are there because something went wrong along the way. Is bro writing out a reporter.log?
The code normally works fine, something is broken in your environment.
$ cat b.bro
redef exit_only_after_terminate=T;
when ( local resp = ActiveHTTP::request([$url="https://www.google.com/"]) )
{
print resp;
terminate();
}
$ bro --version
bro version 2.5
$ bro b.bro
[code=200, msg=OK\x0d, body=<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en">
--
- Justin Azoff
More information about the Bro
mailing list