The source of the supplicatory prayer (Ta&#7717;anun) is in Daniel (9:3) and I Kings (8:54), where the verses indicate that prayer should always be followed by supplication.
Because Joshua fell on his face before the Ark, Ashkenazi custom is that one puts one's head down only when praying in front of an Ark containing a Torah scroll.