'Performs a request to an alternate resource, using the fake accept
trick in order to retrieve the list of alternates, which is then
returned.
:return: A tuple with:
- alternate_resource parameter (unmodified)
- a list of strings containing the alternates.'

def _request_and_get_alternates(self, alternate_resource, headers):

    headers['Accept'] = 'w3af/bar'
    response = self._uri_opener.GET(alternate_resource, headers=headers)
    (alternates, _) = response.get_headers().iget('alternates')
    if alternates:
        return (alternate_resource, re.findall('"(.*?)"', alternates))
    else:
        return (alternate_resource, [])
