Is was looking at the mochiweb code and I saw some oddities.<br><br>firstly the module statement:<br>-module(mochiweb_request, [Socket, Method, RawPath, Version, Headers]).<br><br>In the use of mochiweb I can see things like <span style="color: rgb(255, 153, 0);">Req</span>:get(method).<br>
<br>This looks more like an object method call, is this new?  I cannot see an docs about it.<br><br>Thanks for any info.<br><br>Tom Ayerst <br><br>In the example <span style="color: rgb(255, 153, 0);">Req </span>={mochiweb_request,#Port<0.142>,'GET',<br>
                                         "/",<br>                                         {1,1},<br>                                         {9,<br>                                          {"host",<br>
                                           {'Host',"<a href="http://127.0.0.1:8888">127.0.0.1:8888</a>"},<br>                                           {"accept",<br>                                            {'Accept',<br>
                                             "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},<br>                                            nil,<br>                                            {"accept-language",<br>
                                             {'Accept-Language',<br>                                              "en-gb,en;q=0.5"},<br>                                             {"accept-encoding",<br>
                                              {'Accept-Encoding',<br>                                               "gzip,deflate"},<br>                                              {"accept-charset",<br>
                                               {'Accept-Charset',<br>                                                "ISO-8859-1,utf-8;q=0.7,*;q=0.7"},<br>                                               nil,nil},<br>
                                              nil},<br>                                             {"connection",<br>                                              {'Connection',"keep-alive"},<br>
                                              {"cache-control",<br>                                               {'Cache-Control',"max-age=0"},<br>                                               nil,nil},<br>
                                              nil}}},<br>                                           {"user-agent",<br>                                            {'User-Agent',<br>                                             "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9) Gecko/2008052906 Firefox/3.0"},<br>
                                            {"keep-alive",<br>                                             {'Keep-Alive',"300"},<br>                                             nil,nil},<br>                                            nil}}}}<br>