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.A habeas corpus petition is used to argue that a person is being unlawfully held in custody, and should be released. An authoritative and practical 2-volume treatise with practical advice and expert analysis from practitioners and subject matter experts. Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. A petition for a writ of habeas corpus may be filed with a superior court judge or with either appellate court. NCcourts.gov. Application And Writ Of Habeas Corpus Ad Prosequendum PDF, 204 KB. These files may not be suitable for users of assistive technology.