Petition for a Writ of Habeas Corpus Under 28 U.S.C. § 2241. Download. The first is that you must file your petition within one year of exhausting your direct appeal.To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. A writ of habeas corpus is a judicial mandate to a prison official, usually the warden, ordering that an inmate be brought to the court. 3. Other ways of attacking your conviction include filing an appeal, or a state or federal writ of habeas corpus. JOSEPH PONTE, Commissioner,. Department of Correction,. Respondent. First, after preparing the papers, was filing with the Court; all Writs are a new proceeding, with the need to purchase a new Index number and file an RJI. The petition for a writ of habeas corpus is dismissed without prejudice. Any prisoner, or another person acting on their behalf, may petition the court, or a judge, for a writ of habeas corpus.