I am the Petitioner in this Petition for Writ of Habeas Corpus. Include all of your grounds for relief and all of the facts that support each ground for relief in this petition.An application for a Writ of Habeas Corpus is filed when a person seeks relief from unlawful detention or imprisonment. Step 1: Complete your court forms and attach the exhibits. A petition is filed in the trial court. Houston did not file a petition to transfer to the Indiana. What Is The Cost To File a Petition For a Writ Of Habeas Corpus? The following forms are available for downloading, printing and completing. To initiate a state writ of habeas corpus in Texas, a person must first file a petition with the appropriate court.