[Bro] ActiveHTTP

Dave Crawford bro at pingtrip.com
Sat Jan 28 11:32:40 PST 2017


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 

> On Jan 28, 2017, at 2:28 PM, Azoff, Justin S <jazoff at illinois.edu> wrote:
> 
>> 
>> On Jan 27, 2017, at 11:49 PM, Dave Crawford <bro at pingtrip.com> wrote:
>> 
>> I’m testing a new script in 2.5 that uses ActiveHTTP but I'm unable to retrieve the response. With a simple test script of:
>> 
>>    when ( local resp = ActiveHTTP::request([$url="https://www.google.com/"]) )
>>      {
>>      print “Inside the Matrix."
>>      }
>> 
>> I can see the ActiveHTTP request was successful based on the temporary files created:
>> 
>> -rw-r--r--  1 dave  wheel  162 Jan 27 23:43 /tmp/bro-activehttp-HJKhXt6UYXi_body
>> -rw-r--r--  1 dave  wheel  163 Jan 27 23:43 /tmp/bro-activehttp-HJKhXt6UYXi_headers
>> 
>> But the print statement within the when block never executes. Any ideas what I’m missing?
>> 
>> -Dave
> 
> If you still have the temp files it means something went wrong along the way.  Is bro writing out a reporter.log?
> 
> 
> -- 
> - Justin Azoff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20170128/48ba1b8d/attachment-0001.html 


More information about the Bro mailing list