Contact an award-winning Writ of Habeas Corpus lawyer today. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court.Attached are the forms you will need to file a petition for a writ of habeas corpus. Habeas corpus protects United States citizens from unlawful or indefinite imprisonment. The NhRP files a petition for a common law writ of habeas corpus in the New York Supreme Court, Orleans County. The Court also grants Petitioner an opportunity to withdraw any remaining claims for habeas corpus relief. First, a U.S.C. § 2254 allows us to file a petition for Habeas Corpus when the client is in custody under sentence of a state court and is in a state prison. This petition, called a writ of Habeas Corpus, is filed in Federal Court (U. The NhRP files a petition for a common law writ of habeas corpus in the New York Supreme Court, Orleans County. Id. Petitioner is free to file a petition for writ of habeas corpus on his own behalf.