Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 152B64161 for ; Sun, 15 May 2011 15:03:55 +0000 (UTC) Received: (qmail 71087 invoked by uid 500); 15 May 2011 15:03:48 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 71045 invoked by uid 500); 15 May 2011 15:03:48 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 71038 invoked by uid 99); 15 May 2011 15:03:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 May 2011 15:03:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ichudov@gmail.com designates 209.85.212.49 as permitted sender) Received: from [209.85.212.49] (HELO mail-vw0-f49.google.com) (209.85.212.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 May 2011 15:03:40 +0000 Received: by vws8 with SMTP id 8so4547830vws.22 for ; Sun, 15 May 2011 08:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=AeiLt9zEd+kNp9jLhTBlG8/L6ttHIhnIz3kUVWHcpIw=; b=q2aJLXZXWXVVoFyfa9Je5typHHQ3oHiEV3SiNWoyipjLxEiSGXzeRh/OjJlOoiM3I9 mfoO9jUs7XnmxOazYcK5hvm128crKNcsIfKwGAiXeDe7Lk72qQuScPRoO4OBzhGfMewW y08aHICIlqO19rp4v1IgcM9CA3A/CSomj9mlc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=IK1qEcYOzItjzoMfJilRi5SggnCXunX3eKZiSg88LRQfLw+QOAmiMITMeMKLtIyBTZ dObkb25t2CVRQymg+7pLbZRnPrDnix2t4oV0NfSzS9XZN9KQ7+JTFn0W385fNFL9VAOw jH59fkTQusgcSv9hm6rXxiiLScbjN+WdnOdkU= Received: by 10.52.73.195 with SMTP id n3mr2623352vdv.28.1305471800050; Sun, 15 May 2011 08:03:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.159.133 with HTTP; Sun, 15 May 2011 08:02:40 -0700 (PDT) From: Igor Chudov Date: Sun, 15 May 2011 10:02:40 -0500 Message-ID: Subject: How to tell GET from POST method ni CGI.pm? To: Mod_Perl Content-Type: multipart/alternative; boundary=20cf3071c8dee803c904a351d6a8 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3071c8dee803c904a351d6a8 Content-Type: text/plain; charset=ISO-8859-1 I am beginning to work on hardening my website against cross site request forgeries. I use CGI.pm. My question is, how can I tell, using CGI.pm, if this webpage was invoked with a GET or POST method? Thanks --20cf3071c8dee803c904a351d6a8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am beginning to work on hardening my website against cross site request f= orgeries. I use CGI.pm.=A0

My question is, how can I tel= l, using CGI.pm, =A0if this webpage was invoked with a GET or POST method?<= /div>

Thanks
--20cf3071c8dee803c904a351d6a8--