help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When Emacs handles CGI


From: Felix Dietrich
Subject: Re: When Emacs handles CGI
Date: Thu, 29 Sep 2022 12:07:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

Hello Jean,

Felix Dietrich <felix.dietrich@sperrhaken.name> writes:

> Hi Jean,
>
> Jean Louis <bugs@gnu.support> writes:
>
>> This is how I get Emacs CGI error in web server. I don't get
>> it. Letter by letter.
>>
>> 37.37:11250] AH01215: u: /var/www/subscribe.example.com/doi.cgi
>> 37.37:11250] AH01215: c: /var/www/subscribe.example.com/doi.cgi
>> […]
>
> What are you trying to do?  Which packages, libraries are you using?

Also: these log lines do not appear to be complete (at least the
timestamps at the beginning are truncated).  Have you changed Apacheʼs
default ErrorLogFormat setting?

Try running your script manually (setting the necessary CGI environment
variables yourself) and see if it produces the expected results on the
standard output.  For example something like the following might do
(untested):

#+begin_src sh
  export SCRIPT_NAME="name-of-script"
  export REQUEST_METHOD="GET"
  export REMOTE_ADDR="127.0.0.1"
  export 
QUERY_STRING='action=SUBSCRIBE&name=Max+Mustermann&email=max%40mustermann.example&mid=mailing-list-id&confirmed-redirect=redirection%2Ftarget'

  emacs --script "path-to-script"
#+end_src

-- 
Felix Dietrich



reply via email to

[Prev in Thread] Current Thread [Next in Thread]