def extract_link_from_set_cookie_header(http_response, header_name, header_value):
 try:
  cookie = parse_cookie(header_value)
 except:
  raise StopIteration
 for key in cookie.keys():
  try:
   path = cookie[key]['path']
  except KeyError:
   continue
  if path:
   try:
    (yield http_response.get_url().url_join(path))
   except ValueError:
    msg = 'The application sent a "%s" header that w3af failed to correctly parse as an URL, the header value was: "%s"'
    om.out.debug((msg % (header_name, header_value)))

def extract_link_from_set_cookie_header ( http_response , header_name , header_value ) : try : cookie = parse_cookie ( header_value ) except : raise StopIteration for key in cookie . keys ( ) : try : path = cookie [ key ] [ 'path' ] except KeyError : continue if path : try : ( yield http_response . get_url ( ) . url_join ( path ) ) except ValueError : msg = 'The application sent a "%s" header that w3af failed to correctly parse as an URL, the header value was: "%s"' om . out . debug ( ( msg % ( header_name , header_value ) ) )
extract links from the "path" key of a cookie example headers we can parse: set-cookie: __cfduid= .