The Pennsylvania Petition for a Writ of Habeas Corpus Under 28 U.S.C. Sec. 2241 is a legal document that is used to challenge the legality of a person's imprisonment or detention. This petition is used in criminal and immigration cases as a means of seeking relief from unlawful confinement or detention. The petition must be filed in a federal court and must state the grounds for the petitioner’s claim that they are being detained or confined unlawfully. The petitioner must also provide evidence to support their claim. There are two types of Pennsylvania Petition for a Writ of Habeas Corpus Under 28 U.S.C. Sec. 2241: the direct habeas corpus petition and the collateral habeas corpus petition. The direct habeas corpus petition is used to challenge a criminal conviction or sentence, while the collateral habeas corpus petition is used to challenge any other type of detention or confinement, such as immigration or civil commitment. In both types of petitions, the petitioner must provide evidence to support their claims. Both types of petitions also require the petitioner to provide an affidavit of the facts surrounding their claim, and any legal arguments they wish to make. Additionally, the petitioner must provide the name and address of any government officials responsible for their confinement.