Dear sir,<br><br>I have found a bug in the event called http_header. The value : string it returns has a space at the beginning. Like &nbsp; &nbsp; &nbsp; &nbsp; &quot;<a href="http://www.yahoo.com">www.yahoo.com</a>&quot; will be returned &nbsp; &nbsp; &nbsp; &nbsp; as &nbsp; &nbsp; &nbsp; &nbsp;&quot; <a href="http://www.yahoo.com">www.yahoo.com</a>&quot;.<br>
<br>I am posting You a script where I found it<br><br><br>@load weird<br>@load alarm<br>@load http<br>global path: string;<br><br>global urls: set[string] ={&quot;<a href="http://www.yahoo.com">www.yahoo.com</a>&quot;,&quot;<a href="http://mail.google.com">mail.google.com</a>&quot;,&quot;<a href="http://www.ieee.org">www.ieee.org</a>&quot;,&quot;<a href="http://www.youtube.com">www.youtube.com</a>&quot;,&quot;<a href="http://www.bro-ids.org">www.bro-ids.org</a>&quot;} ;<br>
<br>global shanz_log = open_log_file(&quot;http&quot;) &amp;redef;<br>redef ignore_checksums = T;<br>event http_request(c: connection, method: string, original_URI: string,<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;unescaped_URI: string, version: string)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{<br><br> &nbsp; &nbsp; &nbsp;path = original_URI;<br> &nbsp; &nbsp; &nbsp; <br> }<br>event http_header(c: connection, is_orig: bool, name: string, value: string)<br> &nbsp; &nbsp; &nbsp; &nbsp;{<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(name == &quot;HOST&quot; )<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="background-color: rgb(255, 255, 153);">&nbsp; &nbsp; &nbsp;local v = edit(value,&quot; &quot;);</span><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="background-color: rgb(255, 255, 153);">&nbsp;if( v in &nbsp;urls)</span><span style="background-color: rgb(255, 255, 204);"></span><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { <br>print shanz_log, fmt(&quot;%s:%s-&gt;%s:%s&quot;,c$id$orig_h,c$id$orig_p,c$id$resp_h,c$id$resp_p);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>} <br>}<br>}<br><br><br>If I simply compare the value it doesn&#39;t match. or even if I print the value its printing with one whitespace prefixed at the beginning.<br>
<br><br>Regards,<br>Sanmeet<br>