def extract_link_from_header_simple(http_response, header_name, header_value):
 if (not header_value):
  raise StopIteration
 try:
  (yield http_response.get_url().url_join(header_value))
 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_header_simple ( http_response , header_name , header_value ) : if ( not header_value ) : raise StopIteration try : ( yield http_response . get_url ( ) . url_join ( header_value ) ) 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 http response headers which have the header value set to a link .