|
I have some code that works fine for non-Mozilla browsers (e.g.
Safari and Netscape 7.0) but returns an error for Mozilla browsers
(e.g. Netscape 7.1).
What happens is that when I hit the submit button in a form, and
the post is handled by a method that does a redirect, I get a warning
about the redirect and then the following error message:
"The
POST method is not supported for URLs of class
HTTP-COMPUTED-URL."
Neither the warning not error occurs with non-Mozilla
browsers.
Does anybody have any cl-http code that fixes this problem? I'd
greatly appreciate it: most browsers seem to be moving to a
Mozilla core.
I am running:
CL-HTTP version: 70.190
Macintosh port version: 3.9.7
Lisp version: Macintosh Common Lisp Version 5.0
Running on a: PowerBook5,3
Here is a code fragment that reproduces the error:
(defmethod show-form ((url
url:http-computed-url) stream)
(http:with-successful-response (stream :html)
(html:with-fillout-form (:post
"/test/get-data" :stream stream)
(html:accept-input 'html:submit-button
"Submit" :stream stream))))
(http:export-url #u"/test/start"
:computed
:response-function
#'show-form)
(defmethod get-data ((url url:http-form) stream query-alist)
(declare (ignore stream query-alist))
(http:redirect-request http:*server* (http:merge-url
"/test/start")))
(http:export-url #u"/test/get-data"
:html-form
:pathname
""
:response-function
#'get-data)
--
Mark Klein
Principal Research Scientist
Massachusetts Institute of Technology
77 Massachusetts Avenue, NE20-336
Cambridge MA 02139 USA
m_klein@xxxxxxx
|