Your writ of habeas corpus must state the specific relief you are requesting and the reasons you are requesting it. It tests the legality of a detention or a restraint and the goal is to use it really almost i guess it's an emergency basis.A writ of habeas corpus requires that a person who is in custody be brought before a judge or court and that they be able to challenge that custody. All other references will be self-explanatory or otherwise explained herein. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. How long do you have to file a writ of habeas corpus? Find out what this deadline is and what Florida post-conviction motions can extend this time period. A petition for habeas corpus must be filed with the clerk of the court in the county where the defendant is detained. You have the right to file a Petition for Writ of Habeas Corpus or a Petition for Redress of Grievance. Attached are the forms you will need to file a petition for a writ of habeas corpus.