Petition for Writ of Habeas Corpus. The procedure for filing a petition for a writ of habeas corpus is spelled out in the CPLR Article 70.Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights. This online program from Family Legal Care guides you through filling out a Petition for a Writ of Habeas Corpus. The Appeals Bureau is responsible for handling all appeals and motion practice in the Appellate Division, the Appellate Term, and the New York Court of Appeals. 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 civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment. Please read the entire page before completing and see reverse side for informaiton regarding service fees and borough locations of the Office of the Sheriff. Intheblanks form authorizing a filing agent to efile documents on behalf of an individual attorney. 3. Other ways of attacking your conviction include filing an appeal, or a state or federal writ of habeas corpus.