delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/09/30/17:29:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 190383858C2C
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=gluelogic.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gluelogic.com
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-Spam-Language: en
X-Spam-Relay-Country:
X-Spam-DCC: B=x.dcc-servers; R=smtp1.atof.net 104; Body=1 Fuz1=1 Fuz2=1
X-Spam-RBL:
X-Spam-PYZOR: Reported 0 times.
Date: Thu, 30 Sep 2021 17:28:06 -0400
From: gs-cygwin DOT com AT gluelogic DOT com
To: Andy Romens <romens DOT andy AT hotmail DOT com>
Subject: Re: Lighttpd and Perl
Message-ID: <YVYr5uUK11RHniT/@xps13>
References: <CH0PR14MB493056E9F7B26A4F7DBA6FC0FBAA9 AT CH0PR14MB4930 DOT namprd14 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
In-Reply-To: <CH0PR14MB493056E9F7B26A4F7DBA6FC0FBAA9@CH0PR14MB4930.namprd14.prod.outlook.com>
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 18ULT1iV017857

On Thu, Sep 30, 2021 at 10:07:24AM +0000, Andy Romens via Cygwin wrote:
> Good morning all,
> 
> I am running into a bit of what appears a noob issue with lighttpd.
> 
> Short and sweet version is I am transitioning from Apache to lighttpd.
> 
> Gotten pretty far, except now I am having issues with parsing.
> 
> Our website will run a command in a browser like ‘server/cgi-bin/myscript.pl?prod,eventhist’ in the web browser. With Apache, it will split everything after the ‘?’ As variables, and return a nicely formatted html result page.
> 
> However, after switching to lighttpd, it’s not passing those variables anymore. When I run the script in Cygwin, it works just fine.
> 
> I’ve been banging my head on this problem for a few days now, so any assistance would be greatly appreciated.

I'd suggest starting at https://wiki.lighttpd.net/#Documentation and
carefully reading through the link for "How to get help".  Then, you
can post your improved questions in the lighttpd Support Forum,
perhaps with more details about your script.

When running CGI scripts such as "myscript.pl", lighttpd creates a
standard CGI environment [1], including environment variables such as
QUERY_STRING, so the problem is likely in your Perl script, and likely
a misunderstanding of standard CGI environment variables.

[1] The Common Gateway Interface (CGI) Version 1.1
    https://datatracker.ietf.org/doc/html/rfc3875

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019