'Check if the response has a content-location header and the response
code is not in the 300 range.
:return: None, all results are saved in the kb.'

def _content_location_not_300(self, request, response):

    headers = response.get_headers()
    (header_value, header_name) = headers.iget('content-location')
    if ((header_value is not None) and (300 < response.get_code() < 310)):
        desc = 'The    URL:    "%s"    sent    the    HTTP    header:    "content-location"    with    value:    "%s"    in    an    HTTP    response    with    code    %s    which    is    a    violation    to    the    RFC.'
        desc = (desc % (response.get_url(), header_value, response.get_code()))
        i = Info('Content-Location    HTTP    header    anomaly', desc, response.id, self.get_name())
        i.set_url(response.get_url())
        i.add_to_highlight('content-location')
        kb.kb.append(self, 'anomaly', i)
