To use the fill-in-the-blank habeas form, you must be a person who is currently serving a sentence under a judgment against you in a state court. No. PETITION FOR WRIT OF HABEAS CORPUS AD TESTIFICANDUM.(a) Petitioner with funds. Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. The petition must be filed in the circuit court in which you were convicted and must be served on your custodian, i.e. To begin, your lawyer will review your circumstances to ensure you have met the requirements to file a Habeas Corpus petition. Completing the Habeas Corpus Petition. Complete the habeas corpus petition according to the directions on the form which is enclosed in this packet. An appeal may be taken to the court of appeals from the order entered on the motion as from a final judgment on application for a writ of habeas corpus. (e).