A habeas corpus petition is used to argue that a person is being unlawfully held in custody, and should be released. Habeas corpus is a collateral attack on a judgment of imprisonment and is not a substitute for appeal.Please call the help desk at 1-866-855-8894 or call the main line at 919-645-1700 and ask for the Prisoner Section. 20. Click on Docket Lead Event? Application And Writ Of Habeas Corpus Ad Prosequendum PDF, 204 KB. These files may not be suitable for users of assistive technology. Petition for Writ of Habeas Corpus. Use this form to obtain the presence of a witness in a civil or criminal case. Habeas corpus is an old Latin phrase that means "show me the body. Division Of Juvenile Justice. File No. STATE OF NORTH CAROLINA.