all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* When Emacs handles CGI
@ 2022-09-28  6:16 Jean Louis
  2022-09-28 12:13 ` Felix Dietrich
  0 siblings, 1 reply; 3+ messages in thread
From: Jean Louis @ 2022-09-28  6:16 UTC (permalink / raw)
  To: Help GNU Emacs

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
37.37:11250] AH01215: h: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215:  : /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: f: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: i: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: l: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: e: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215:  : /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: o: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: r: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215:  : /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: d: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: i: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: r: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: e: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: c: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: t: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: o: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: r: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: y: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: ,: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215:  : /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: r: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: c: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: d: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: -: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: m: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: a: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: i: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: l: /var/www/subscribe.example.com/doi.cgi
37.37:11250] AH01215: : /var/www/subscribe.example.com/doi.cgi


Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: When Emacs handles CGI
  2022-09-28  6:16 When Emacs handles CGI Jean Louis
@ 2022-09-28 12:13 ` Felix Dietrich
  2022-09-29 10:07   ` Felix Dietrich
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Dietrich @ 2022-09-28 12:13 UTC (permalink / raw)
  To: help-gnu-emacs

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?

-- 
Felix Dietrich



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: When Emacs handles CGI
  2022-09-28 12:13 ` Felix Dietrich
@ 2022-09-29 10:07   ` Felix Dietrich
  0 siblings, 0 replies; 3+ messages in thread
From: Felix Dietrich @ 2022-09-29 10:07 UTC (permalink / raw)
  To: Jean Louis; +Cc: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-29 10:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-28  6:16 When Emacs handles CGI Jean Louis
2022-09-28 12:13 ` Felix Dietrich
2022-09-29 10:07   ` Felix Dietrich

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.