* Lighttpd and Perl
@ 2021-09-30 10:07 Andy Romens
2021-09-30 21:28 ` gs-cygwin.com
0 siblings, 1 reply; 4+ messages in thread
From: Andy Romens @ 2021-09-30 10:07 UTC (permalink / raw)
To: cygwin
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.
Thanks,
-Andy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Lighttpd and Perl
2021-09-30 10:07 Lighttpd and Perl Andy Romens
@ 2021-09-30 21:28 ` gs-cygwin.com
2021-10-01 0:48 ` Brian Inglis
2021-10-06 23:56 ` Andy Romens
0 siblings, 2 replies; 4+ messages in thread
From: gs-cygwin.com @ 2021-09-30 21:28 UTC (permalink / raw)
To: Andy Romens; +Cc: cygwin
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Lighttpd and Perl
2021-09-30 21:28 ` gs-cygwin.com
@ 2021-10-01 0:48 ` Brian Inglis
2021-10-06 23:56 ` Andy Romens
1 sibling, 0 replies; 4+ messages in thread
From: Brian Inglis @ 2021-10-01 0:48 UTC (permalink / raw)
To: cygwin
On 2021-09-30 15:28, gs-cygwin.com@gluelogic.com wrote:
> On Thu, Sep 30, 2021 at 10:07:24AM +0000, Andy Romens via Cygwin wrote:
>> 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
There have to be many thousands of perl CGI scripts written in the 17
years since that RFC was posted that you should be able to pick from,
preferably with comprehensive client and server metadata debugging
output, and use with suitable command line scripts or simple web forms
as basic regression tests for your web server functions.
Does the package itself come with any such server test pages and scripts
that you can start with, or does the documentation contain such content?
Start with simple client command scripts, web pages, and CGI scripts for
each of the simple basic datatypes, each with a single form with a
single field of one type, and check how each is handled by your server
configuration.
Remember to leave any Apache assumptions at the door, and check how
lighttpd handles metadata provided or generated, methods, path info,
query strings, parameters, etc. and what assumptions the perl scripts
have built in.
Using command line clients' e.g. lynx, wget, curl, and servers'
debugging logs, and tools like xtail to merge them into a stream showing
the interactions from both sides of the interface, can be a useful
approach.
It helps if you can think from the point of view that whichever side you
are dealing with currently could be causing an issue.
Hope this helps you think about different approaches you could try.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Lighttpd and Perl
2021-09-30 21:28 ` gs-cygwin.com
2021-10-01 0:48 ` Brian Inglis
@ 2021-10-06 23:56 ` Andy Romens
1 sibling, 0 replies; 4+ messages in thread
From: Andy Romens @ 2021-10-06 23:56 UTC (permalink / raw)
To: gs-cygwin.com; +Cc: cygwin
Hi again,
Thanks for the pro tip. I am trying to register with the lighttpd forum, but the activation email has yet to make it to my inbox. Any tips?
Thanks,
-Andy
> On Sep 30, 2021, at 4:28 PM, gs-cygwin.com@gluelogic.com wrote:
>
> 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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.lighttpd.net%2F%23Documentation&data=04%7C01%7C%7C722d1ee7355143db178608d9845939b8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637686341017068026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=hSrAta1EEh35EgYUBixhVNG%2FWc8jbg94uM3mwrq2gX4%3D&reserved=0 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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc3875&data=04%7C01%7C%7C722d1ee7355143db178608d9845939b8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637686341017068026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TBkSGPSbVgIgwjXq7oya4gAKG1ufmm%2F6%2FJgk4bCW3Hc%3D&reserved=0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-10-06 23:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-30 10:07 Lighttpd and Perl Andy Romens
2021-09-30 21:28 ` gs-cygwin.com
2021-10-01 0:48 ` Brian Inglis
2021-10-06 23:56 ` Andy Romens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).