A professional falsewitness hired by an unscrupulous attorney. Such a man would frequent the vicinity of a courthouse and show his intention and availability by a straw sticking from one of his shoes.
Etymology
US, as early as the mid 1700s. Possibly also seen later in the writings of Mark Twain.