<br>On Fri, May 1, 2009 at 8:43 AM, Carl McDade <<a href="mailto:carlmcdade@gmail.com">carlmcdade@gmail.com</a>> wrote:<br>> Since installing Mochiweb on Windows otherwise is a <br>> PIA.<br><br><br>I'm not sure I follow. It's extremely easy from where I'm standing.<br>
<br>Robby<br><br><br><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>svn co <a href="http://mochiweb.googlecode.com/svn/trunk">http://mochiweb.googlecode.com/svn/trunk</a> .</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\priv</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\priv\www</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\priv\www\index.html</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\start-dev.sh</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\include</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\doc</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\start.sh</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\src</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\src\skel.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\src\skel_app.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\src\skel.hrl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\src\skel_sup.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\src\skel_deps.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\src\skel_web.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\src\Makefile</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\src\skel.app</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\deps</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\support</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\support\<a href="http://include.mk">include.mk</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A priv\skel\ebin</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A priv\skel\Makefile</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A LICENSE</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A include</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A doc</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_multipart.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochihex.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_request.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochifmt.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_cookies.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochijson2.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_response.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochiweb_skel.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochinum.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochifmt_std.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_html.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochiweb_sup.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_charref.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochifmt_records.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_headers.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochijson.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_util.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochiweb.app</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_echo.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochiweb_socket_server.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_http.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\Makefile</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\mochiweb_app.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A src\mochiweb.erl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A src\reloader.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A scripts</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A scripts\new_mochiweb.erl</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A deps</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A support</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A support\<a href="http://include.mk">include.mk</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A ebin</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">A README</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">A Makefile</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Checked out revision 100.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>for %i in (src/*.erl) do erlc -o ebin src/%i</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochifmt.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochifmt_records.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochifmt_std.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochihex.erl</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochijson.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochijson2.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochinum.erl</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_app.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_charref.erl</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_cookies.erl</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_echo.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_headers.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_html.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_http.erl</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_multipart.erl</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_request.erl</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_response.erl</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_skel.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_socket_server.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_sup.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/mochiweb_util.erl</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erlc -o ebin src/reloader.erl</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>copy src\mochiweb.app ebin</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 1 file(s) copied.</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">C:\Robby\erlang\mochiweb_test>erl -pa ebin</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Eshell V5.6.5 (abort with ^G)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">1> application:start(mochiweb).</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ok</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">2> mochiweb_http:start().</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">{ok,<0.36.0>}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">3> application:start(inets).</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ok</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">4> http:request("<a href="http://localhost:8888/foo/bar">http://localhost:8888/foo/bar</a>").</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">{ok,{{"HTTP/1.1",200,"OK"},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> [{"date","Fri, 01 May 2009 08:40:41 GMT"},</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {"server","MochiWeb/1.0 (Any of you quaids got a smint?)"},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {"content-length","702"},</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {"content-type","text/html"},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {"set-cookie","mochiweb_http=test_cookie; Version=1"}],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> "<html><head></head><body><form method=\"POST\"><input type=\"hidden\" valu</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">e=\"message\" name=\"hidden\"/><input type=\"submit\" value=\"regular POST\"></f</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">orm><br /><form method=\"POST\" enctype=\"multipart/form-data\" action=\"/multip</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">art\"><input type=\"hidden\" value=\"multipart message\" name=\"hidden\"/><input</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> type=\"file\" name=\"file\"/><input type=\"submit\" value=\"multipart POST\" /></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></form><pre>[{parse_qs,[]},\n {parse_cookie,[]},\n {mochiweb_request,[{method,'G</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ET'},\n {version,{1,1}},\n {raw_path,\"/fo</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">o/bar\"},\n {headers,[{'Connection',\"keep-alive\"},\n</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {'Host',\"localhost\"},\n {\</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">"Te\",[]}]}]}]\n</pre></body></html>"}}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">5></span><br style="font-family: courier new,monospace;">
<br>