Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 545C16961 for ; Thu, 21 Jul 2011 09:17:45 +0000 (UTC) Received: (qmail 2753 invoked by uid 500); 21 Jul 2011 09:17:44 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 2323 invoked by uid 500); 21 Jul 2011 09:17:35 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 2315 invoked by uid 99); 21 Jul 2011 09:17:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 09:17:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sorinm@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 09:17:25 +0000 Received: by qwj8 with SMTP id 8so865921qwj.18 for ; Thu, 21 Jul 2011 02:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rIb3zPTazotb9gtCEU0VSik11/b3d8GTFi707NNA89g=; b=Qg9OoKi1m0ecb+MIRqPrAmew3WrACxdFiuZ4h0mT1HepTiBtv1Dtg0iSYgAcHjLy/N rsQOmeY5dChsH0RMrn/k54aHOLXWe5uOakP2r8wmQEE1K/tdlbRBv9bV+s0w06j0iuhD zpPzRw1TxrpSga7uLlcgCvMVbJR3PiNb79abg= MIME-Version: 1.0 Received: by 10.224.211.196 with SMTP id gp4mr22672qab.103.1311239824613; Thu, 21 Jul 2011 02:17:04 -0700 (PDT) Received: by 10.224.11.69 with HTTP; Thu, 21 Jul 2011 02:17:04 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Jul 2011 11:17:04 +0200 Message-ID: Subject: Re: Finding out original request's scheme From: Sorin Manolache To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jul 21, 2011 at 11:02, Ignaz Birnstingl wrote: > Hello, > > is there an easy way to find out a request's scheme part (i.e. http or > https)? r->parsed_uri.scheme seems to be a null pointer. I currently > iterate r->input_filters and check if filter->frec->name is "ssl/tls > filter" but that doesn't seem right. Any suggestions? Check the HTTPS environment variable (r->subprocess_env). S