question about Cl-http

Cristina Gema Muñoz Maya <[email protected]> Tue, 17 Jun 2003 13:19:03 +0200
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
Hello,

            I'm sorry because i don't know how to write in english very 
well. I have a problem with cl-http. I am begining with a simple example, 
but it is imposible for me to do nothing. I don't know if the sintaxis is 
good, or if i have to put something more.

          First, I have a html page: siidepe.html (with a post method):
<HTML>

<body>
<FORM ACTION="p" METHOD="POST" enctype="application/www-form-url-encoded">

<INPUT TYPE="text" NAME="nombre" SIZE="10" VALUE="">
<input type="submit" NAME="boton" VALUE="ENTRAR">

</FORM>
</BODY>

</HTML>


       And the file p.lisp:

(defmethod respond-to-html-form ((url url:http-form) stream query-alist)
    (bind-query-values (nombre)
                       (url query-alist)
    )
    (with-successful-response (stream :html :expires 
(url:expiration-universal-time url)
                                           :cache-control 
(url:response-cache-control-directives url) :content-location url 
:content-language (languages url))
                      (with-html-document (:declare-dtd-version-p t :stream 
stream)
                              (with-document-preamble (:stream stream)
                                      (declare-base-reference url :stream 
stream)
                                      (declare-title title :stream stream)
                              )
                            (with-standard-document-body (:stream stream)
                                     (write-string nombre stream)
                           )
        )
     )
)


(export-url "http://siidepe1.html"  ;where the form computed dynamically is 
going to be located
            :html-form
            :expiration '(:no-expiration-header)
            :response-function #'respond-to-html-form
            :public t
            :language :en
            :keywords '(:cl-http :demo)
            :documentation "Prueba.")


The files are located:

        /cl-http/sidepe/siidepe.html

        /cl-http/siidepe/p.lisp


          In internet explorer , i put the url: 
http://umbriel.uma.es:8000/siidepe/siidepe.html, to see the form, but when i 
do the submit, it doesn't create the page dynamically. I don't know if i 
have
to compile the file p.lisp,with this extension (.lisp) or with a different 
one, and what is the exactly path to upload the files.
        I expect your answer, thank you very much.

Cristina, my email: [email protected]

_________________________________________________________________
Accede al romance onine. Descubre gente que busca a otra gente en MSN Amor & 
Amistad. http://match.msn.es/