def target_url
    proto = 'http'
    if (rport == 443) || ssl
      proto = 'https'
    end