common/src/main/java/HTTPClient/Cookie.java
/**
     * @param  req  the request to be sent
     * @return true if this cookie should be sent with the request
     */
@param  req  the request to be sent
@return true if this cookie should be sent with the request
@param req the request to be sent @return true if this cookie should be sent with the request
protected boolean sendWith(RoRequest req)
    {
	HTTPConnection con = req.getConnection();
	String eff_host = con.getHost();
	if (eff_host.indexOf('.') == -1)  eff_host += ".local";
	return ((domain.charAt(0) == '.'  &&  eff_host.endsWith(domain)  ||
		 domain.charAt(0) != '.'  &&  eff_host.equals(domain))  &&
		Util.getPath(req.getRequestURI()).startsWith(path)  &&
		(!secure || con.getProtocol().equals("https") ||
		 con.getProtocol().equals("shttp")) && con.getIncludeCookies());
    }
protected boolean sendWith ( RoRequest req ) { HTTPConnection con = req . getConnection ( ) ; String eff_host = con . getHost ( ) ; if ( eff_host . indexOf ( '.' ) == - 1 ) eff_host += ".local" ; return ( ( domain . charAt ( 0 ) == '.' && eff_host . endsWith ( domain ) || domain . charAt ( 0 ) != '.' && eff_host . equals ( domain ) ) && Util . getPath ( req . getRequestURI ( ) ) . startsWith ( path ) && ( ! secure || con . getProtocol ( ) . equals ( "https" ) || con . getProtocol ( ) . equals ( "shttp" ) ) && con . getIncludeCookies ( ) ) ; }
@param  req  the request to be sent
 @return true if this cookie should be sent with the request
@param req the request to be sent @return true if this cookie should be sent with the request