An application for a writ of habeas corpus must be made to the appropriate district court. If made to a circuit judge, the application must be transferred.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 person held in a secure facility under this part may file a petition for habeas corpus in the circuit court for the county in which the facility is located. Your writ of habeas corpus must state the specific relief you are requesting and the reasons you are requesting it. Initiate the sanity proceedings set out in section 922.07, Florida Statutes) (1985). The same holding exists under federal law. Habeas corpus is a kind of petition that you can file in federal court to claim that your imprisonment violates federal law. 3006A or other federal law, in habeas corpus litigation in the federal courts.