curry favor vs set one’s cap for

curry favor

verb
  • To seek to gain favor by flattery or attention. 

set one’s cap for

How often have the words curry favor and set one’s cap for occurred in a corpus of books? (source: Google Ngram Viewer )