A habeas corpus petition is used to argue that a person is being unlawfully held in custody, and should be released. A petition for a writ of habeas corpus is used to challenge imprisonment as unlawful.Application And Writ Of Habeas Corpus Ad Prosequendum PDF, 204 KB. These files may not be suitable for users of assistive technology. The following steps should be followed when filing a Petition for Writ of Habeas Corpus. 1. Go to Civil on the blue bar located at the top of the screen. 2. For the reasons set forth below, this Court grants Respondent's Motion for Summary Judgment; and dismisses Petitioner's Petition for a Writ of Habeas Corpus. In this video, David offers insight on how to file habeas corpus and compassionate release motions. Ask them to fill out and sign a declaration. Therefore, the court recommended that a writ of habeas corpus be granted and that the convict be granted a rehearing on the sentencing phase of his trial. Gram which exist to carry out the sentence.