[erlang-questions] Can the CouchDB install of Mochiweb be used alone?

Robert Raschke rtrlists@REDACTED
Fri May 1 10:46:47 CEST 2009


On Fri, May 1, 2009 at 8:43 AM, Carl McDade <carlmcdade@REDACTED> wrote:
> Since installing Mochiweb on Windows otherwise is a
> PIA.


I'm not sure I follow. It's extremely easy from where I'm standing.

Robby


C:\Robby\erlang\mochiweb_test>svn co
http://mochiweb.googlecode.com/svn/trunk .
A    priv
A    priv\skel
A    priv\skel\priv
A    priv\skel\priv\www
A    priv\skel\priv\www\index.html
A    priv\skel\start-dev.sh
A    priv\skel\include
A    priv\skel\doc
A    priv\skel\start.sh
A    priv\skel\src
A    priv\skel\src\skel.erl
A    priv\skel\src\skel_app.erl
A    priv\skel\src\skel.hrl
A    priv\skel\src\skel_sup.erl
A    priv\skel\src\skel_deps.erl
A    priv\skel\src\skel_web.erl
A    priv\skel\src\Makefile
A    priv\skel\src\skel.app
A    priv\skel\deps
A    priv\skel\support
A    priv\skel\support\include.mk
A    priv\skel\ebin
A    priv\skel\Makefile
A    LICENSE
A    include
A    doc
A    src
A    src\mochiweb_multipart.erl
A    src\mochihex.erl
A    src\mochiweb_request.erl
A    src\mochifmt.erl
A    src\mochiweb_cookies.erl
A    src\mochijson2.erl
A    src\mochiweb_response.erl
A    src\mochiweb_skel.erl
A    src\mochinum.erl
A    src\mochifmt_std.erl
A    src\mochiweb_html.erl
A    src\mochiweb_sup.erl
A    src\mochiweb_charref.erl
A    src\mochifmt_records.erl
A    src\mochiweb_headers.erl
A    src\mochijson.erl
A    src\mochiweb_util.erl
A    src\mochiweb.app
A    src\mochiweb_echo.erl
A    src\mochiweb_socket_server.erl
A    src\mochiweb_http.erl
A    src\Makefile
A    src\mochiweb_app.erl
A    src\mochiweb.erl
A    src\reloader.erl
A    scripts
A    scripts\new_mochiweb.erl
A    deps
A    support
A    support\include.mk
A    ebin
A    README
A    Makefile
Checked out revision 100.

C:\Robby\erlang\mochiweb_test>for %i in (src/*.erl) do erlc -o ebin src/%i

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochifmt.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochifmt_records.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochifmt_std.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochihex.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochijson.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochijson2.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochinum.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_app.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_charref.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_cookies.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_echo.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_headers.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_html.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_http.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_multipart.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_request.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_response.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_skel.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_socket_server.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_sup.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_util.erl

C:\Robby\erlang\mochiweb_test>erlc -o ebin src/reloader.erl

C:\Robby\erlang\mochiweb_test>copy src\mochiweb.app ebin
       1 file(s) copied.

C:\Robby\erlang\mochiweb_test>erl -pa ebin
Eshell V5.6.5  (abort with ^G)
1> application:start(mochiweb).
ok
2> mochiweb_http:start().
{ok,<0.36.0>}
3> application:start(inets).
ok
4> http:request("http://localhost:8888/foo/bar").
{ok,{{"HTTP/1.1",200,"OK"},
    [{"date","Fri, 01 May 2009 08:40:41 GMT"},
     {"server","MochiWeb/1.0 (Any of you quaids got a smint?)"},
     {"content-length","702"},
     {"content-type","text/html"},
     {"set-cookie","mochiweb_http=test_cookie; Version=1"}],
    "<html><head></head><body><form method=\"POST\"><input type=\"hidden\"
valu
e=\"message\" name=\"hidden\"/><input type=\"submit\" value=\"regular
POST\"></f
orm><br /><form method=\"POST\" enctype=\"multipart/form-data\"
action=\"/multip
art\"><input type=\"hidden\" value=\"multipart message\"
name=\"hidden\"/><input
type=\"file\" name=\"file\"/><input type=\"submit\" value=\"multipart POST\"
/>
</form><pre>[{parse_qs,[]},\n {parse_cookie,[]},\n
{mochiweb_request,[{method,'G
ET'},\n                    {version,{1,1}},\n
 {raw_path,\"/fo
o/bar\"},\n                    {headers,[{'Connection',\"keep-alive\"},\n
                      {'Host',\"localhost\"},\n
 {\
"Te\",[]}]}]}]\n</pre></body></html>"}}
5>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090501/73ca85c3/attachment.htm>


More information about the erlang-questions mailing list