To set one's cap for

to try to win the favor of a man with a view to marriage.
- Chaucer.

See also: Cap