Signature of Attorney, if any. Attorney's Name (Print or Type).Petition for Writ of Habeas Corpus. Solicitor General Division. Learn more about: Appeals and Opinions Bureau. Contact an award-winning Writ of Habeas Corpus lawyer today. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. Intheblanks form required for any matter originating and electronically filed in Supreme or Surrogate's Courts in Richmond County. This online program from Family Legal Care guides you through filling out a Petition for a Writ of Habeas Corpus. Addendum to Application to Inspect Public Records.