If you are filing this petition in the superior court, you only need to file the original unless local rules require additional copies. 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) On filing, the clerk of the court must immediately deliver the petition to the presiding judge or his or her designee. This practice advisory is an introduction to the law of habeas corpus in the immigration context. If provided with a properly executed court order, the U.S. Marshals may honor requests for producing federal prisoners in state civil cases. To obtain a Writ, the applicant must complete a Petition for. The Supreme Court and Supreme Court Justices should not be burdened with applications for writs cognizable in the district courts. If the petitioner loses in the superior court, he or she must file a new petition for writ of habeas corpus in the court of appeal. Penal Code §§ 1474-1475. Williams filed a second petition for writ of habeas corpus in the Santa Clara County Superior Court on February 24, 2000.