2016-03-01から1ヶ月間の記事一覧

Aserve でURLリダイレクト

こちらのチュートリアルを参考How to do redirects using AllegroServe http://franz.com/support/tutorials/aserve-redirect-tutorial.htm (publish :path "/new" :content-type "text/html" :function #'(lambda (req ent) (with-http-response (req ent :…

AserveにMIMEタイプを追加する

SVG(Scalable Vector Graphics)のMIMEタイプを追加するためAserveの以下のファイルを編集。dists/quicklisp/software/portableaserve-20150923-git/aserve/publish.cl ("image/svg+xml" "svg") ("image/svg+xml" "svgz")

Aserveでフォームから入力データを受け取る

SBCL & Aserve でHTMLフォームよりデータを受け取る処理です。HTMLフォーム <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>テスト</title> </head> <body> <form action="/app/form.html" method="post"> <h3>フォームテスト</h3><br> 名前<br> <input type="text" name="name" size="40"><br><br> 性別<br> </form></body></html>