Green’s Dictionary of Slang

pony (and trap) v.

[pony (and trap) n. (1)]

to defecate.

[UK]Partridge DSUE (1984) 908/1: [...] late C.19–20.