static ResourceLocator . Request buildChallengeRequest ( ResourceLocator . Session session , String symbol ) { // The "options" part causes the cookie to be set. // Other path endings may also work, // but there has to be something after the symbol return session . request ( ) . host ( FINANCE_YAHOO_COM ) . path ( "/quote/" + symbol + "/options" ) ; }
A request that requires consent and will set the B cookie but not the crumb