15:01:02 <HugoDaniel> how do i perform a request on a URL with happstack ?
15:01:54 <stepcut> HugoDaniel: I don't understand the question..
15:02:00 <HugoDaniel> hmm
15:02:12 <HugoDaniel> i dont know what i want really
15:02:26 <stepcut> you want your app to make a request to another server ?
15:02:31 <HugoDaniel> to the same
15:02:49 <stepcut> to itself ?
15:02:53 <HugoDaniel> yes
15:03:12 <HugoDaniel> im probably not thinking the right way :/
15:03:29 <HugoDaniel> i want to serve a file
15:03:33 <stepcut> ok
15:03:38 <HugoDaniel> like thanks.html
15:03:58 <stepcut> ok
15:04:03 <HugoDaniel> im just adding stuff in a database, and in the end i want to serve a file
15:04:13 <stepcut> ok
15:04:21 <HugoDaniel> so i did a fileServe [] "thanks.html" in the end of my do block
15:04:28 <HugoDaniel> but its not working
15:04:31 <stepcut> right
15:04:34 <stepcut> that wouldn't work
15:04:55 <stepcut> the last arguement to fileServe is a directory which contains files you want to serve
15:05:01 <HugoDaniel> ah
15:05:31 <stepcut> you want, serveFile
15:05:35 <stepcut> which serves a single file
15:05:51 <HugoDaniel> ah ok
15:05:53 <HugoDaniel> thanks
15:05:54 <HugoDaniel> :)
15:06:18 <stepcut> serveFile (asContentType "text/html") "thanks.html"
15:06:43 <stepcut> or perhaps, serverFile (asContentType "text/html;charset=utf-8") "thanks.html"
15:07:32 <stepcut> or, serverFile (guessContentType mimeTypes) "thanks.html", but that seems overkill since you know the mime-type at compile time..
15:08:05 <stepcut> fileServe should be renamed to, serveDirectory or something..
15:08:16 <stepcut> otherwise it is confusing.. serverFile vs fileServe
15:13:17 <CalmNelly> neat
15:16:40 <stepcut> alternatively, if you had a directory full of files like thanks.html, you could have a serverpart like, fileServe [] "staticHtml", and then at the end of that other part do, seeOther "/staticHtml/thanks.html" (toResponse ())
15:17:08 <stepcut> but that does not seem like an improvement either, unless that staticHtml directory is used for other things
15:17:35 <stepcut> (actually, it would be, dir "staticHtml" $ fileServer [] "/path/to/staticHtml/on/disk")
15:18:46 <CalmNelly> you wouldn't happen to a site that talks about how websites work in general in respect to GET and POST, file serving and the like.  So, that reading this stuff would allow me to understand happstack better.  I believe i missing this essential knowledge.
15:18:59 <CalmNelly> *to know*
15:20:27 <stepcut> CalmNelly: yeah.. the crash course definitely expects that you know that stuff already. Not sure what other reading to recommend..
15:21:44 <CalmNelly> okay, just thought you might know where I could go or what to search for so that a person like me, could the necessary info, then go directly to happstack, and fall in love more easily
15:22:21 <CalmNelly> for now it's all good.
15:22:34 <stepcut> :)
15:22:38 <CalmNelly> i'm already smitten
15:22:44 <stepcut> sweet!
15:23:13 <CalmNelly> :D
17:05:05 <stepcut> boing!
17:14:47 <shapr> ACTION h0ps
18:03:08 <stepcut> :)
18:03:22 <stepcut> how are your killer happstack applications coming along ?
18:17:36 <burp> facetwittbooker with happstack-state scaling up to 1 billion users is nearly finished
18:35:49 <stepcut> burp: epic!
21:03:09 <stepcut> somebody should extract Happtsack.Util.Mail and send it as a patch to SMTPClient -- he already said he would except the patch, someone just needs to make it :)