01:01:10  * kazuponjoined
02:15:17  * dan336joined
02:20:29  * coderkevinquit (Quit: Connection closed for inactivity)
02:50:37  * kazuponquit (Remote host closed the connection)
02:56:26  * DarkGodquit (Ping timeout: 256 seconds)
02:58:00  * dan336quit (Quit: Leaving.)
03:02:39  * dan336joined
03:33:55  * kazuponjoined
03:34:15  * dan336quit (Quit: Leaving.)
03:43:18  * kazuponquit
03:44:12  * kazuponjoined
05:47:05  * SkyRocknRolljoined
06:02:16  * sousouxquit (Ping timeout: 246 seconds)
06:41:31  * SkyRocknRollquit (Ping timeout: 250 seconds)
07:09:36  * SkyRocknRolljoined
07:28:27  * jetquit (Read error: Connection reset by peer)
07:36:50  * DarkGodjoined
08:06:21  * tetjoined
10:40:08  * endou_joined
10:43:42  * endouquit (Read error: Connection reset by peer)
10:43:46  * SkyRocknRollquit (Ping timeout: 258 seconds)
10:44:13  * kazuponquit (Remote host closed the connection)
10:45:10  * SkyRocknRolljoined
11:58:58  * necrophcodrjoined
11:59:52  <necrophcodr>does anyone have a simple example on how to use http(s) to POST to a server? it seems as if the data is only posted when i press CTRL+C
12:00:55  <necrophcodr>i am using "luvit/http" for the test, and running a simple `local req = http.request()` call, followed by `req:done()`, yet the data doesn't go through. I am also running uv.run(), but i'm not sure if that could be a problem.
12:08:34  * SkyRocknRollquit (Ping timeout: 272 seconds)
12:10:23  <necrophcodr>what i've been doing works fine for GET btw, but not for POST. even though the data is the exact same.
12:27:31  * SkyRocknRolljoined
13:22:23  * SkyRocknRollquit (Remote host closed the connection)
14:30:17  * coderkevinjoined
14:30:39  <rphillips>good morning
14:31:17  <rphillips>necrophcodr: are you calling req:done() ?
14:32:28  * dan336joined
14:36:58  <rphillips>creationix: https://github.com/luvit/luvit/issues/737
14:37:15  <rphillips>this probably should be in the lit issue list
14:37:23  <necrophcodr>rphillips: i am, yes
14:37:58  <rphillips>necrophcodr: try setting the content length header
14:38:44  <necrophcodr>rphillips: i have tried that too. it should work like `header["Content-Length"] = #body` right?
14:39:40  <necrophcodr>i can make available some subset of my code that doesn't work, if that helps. i'll see if i can't make that happen.
14:40:00  <rphillips>in luvit 2 there is a new way. it's a tuple
14:40:10  <rphillips>{ 'content-length', #payload }
14:40:47  <rphillips>if you could post some sample code it might help track down the issue
14:45:39  <necrophcodr>i am unable to use a tuple, which is why i used the other way. using a trouple seems to result in some error from http.lua:246 being unable to unpack a table, when it expects a string
14:45:58  <necrophcodr>(and i am not doing `headers = "{ 'content-length' ..."`
14:46:36  <rphillips>try changing that to an array of an array, { { 'content-length', #payload} }
14:49:08  <necrophcodr>oh, alright, i might give that a try
14:50:26  <necrophcodr>same result, although it does also work in the same way. which means that when the application closes, the POST is sent.
14:50:28  <necrophcodr>uploading the code now
14:51:17  <necrophcodr>main.lua: http://paste.pound-python.org/show/ZfWUKgiEpLTzMAfMORoa/
14:52:16  <necrophcodr>i can send the package.lua too, but that should be sufficient
14:52:18  <necrophcodr>it's not pretty, i know.
14:52:49  <rphillips>let me see
14:53:21  <rphillips>necrophcodr: req:write(body)
14:53:35  <necrophcodr>rphillips: i tried that too, same result
14:53:40  <rphillips>is this a luvi app or luvit app?
14:53:57  <necrophcodr>luvi app
14:54:22  <necrophcodr>well, it appears using req:write( body ) does fix the issue in the sample i sent you
14:54:40  <necrophcodr>i'll have to look more into why it didn't work in my application then. thanks a ton!
14:54:57  <rphillips>np. glad to help
14:55:00  <necrophcodr>i've gotta go now, but i'll hop back online in an hour or so
14:55:05  * necrophcodrquit (Quit: WeeChat 1.2)
15:08:36  * tetquit (Read error: Connection reset by peer)
15:18:28  * kazuponjoined
16:14:46  * tetjoined
16:23:53  * travis-cijoined
16:23:54  <travis-ci>luvit/luvit#2168 (master - 35a4901 : Tim Caswell): The build passed.
16:23:54  <travis-ci>Change view : https://github.com/luvit/luvit/compare/4c48d3aa2d64...35a4901d62be
16:23:54  <travis-ci>Build details : http://travis-ci.org/luvit/luvit/builds/64941867
16:23:54  * travis-cipart
16:57:04  * tetquit (Read error: Connection reset by peer)
17:04:12  * piernovquit (Read error: Connection reset by peer)
17:05:16  * piernovjoined
17:10:11  * necrophcodrjoined
17:10:31  <necrophcodr>rphillips: so the solution you mentioned with req:write( body ) req:done() seems to work, except
17:10:46  <necrophcodr>it also kills the uv.run() loop
17:10:58  <necrophcodr>so the application stops
17:11:04  <necrophcodr>or exits with return code 1
17:12:30  <necrophcodr>i'm currently looking into it, but i'm not sure. if i do a http.request( object, callback ) call
17:12:56  <necrophcodr>does the callback function receive a "request" object with a "code" parameter, that is the HTTP status code?
17:28:13  <rphillips>necrophcodr: it returns a (response) object
17:28:25  <rphillips>necrophcodr: example: https://github.com/luvit/luvit/blob/master/tests/test-http-client.lua
17:35:05  <necrophcodr>it finally works entirely. thanks a super ton rphillips, you've been a real help!
17:35:13  <rphillips>np. glad to help
17:35:46  <necrophcodr>it's a kind of shame that it isn't more documented, but i suppose that i could spend a week reading up on the entire code base and figure shit out too
17:36:39  <rphillips>yeah, we could use help there
17:36:51  <rphillips>necrophcodr: it does closely follow the node.js docs
17:37:11  <rphillips>and the examples and tests are good places to look as well
17:43:33  * hdmsjoined
17:45:17  * tetjoined
17:55:08  * kazuponquit (Remote host closed the connection)
17:55:36  * kazuponjoined
17:58:28  * kazuponquit (Read error: Connection reset by peer)
18:04:19  <rje>https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/737
18:06:56  * dan336quit (Quit: Leaving.)
18:38:26  * necrophcodrquit (Ping timeout: 246 seconds)
18:51:55  * dan336joined
19:56:36  * travis-cijoined
19:56:37  <travis-ci>brimworks/luvi#28 (master - 76224e0 : Brian Maher): The build passed.
19:56:37  <travis-ci>Change view : https://github.com/brimworks/luvi/compare/3ef8d301720f...76224e054f5c
19:56:37  <travis-ci>Build details : http://travis-ci.org/brimworks/luvi/builds/64970346
19:56:37  * travis-cipart
21:10:20  * ksheedloquit (Ping timeout: 265 seconds)
21:11:13  * ksheedlo-raxjoined
22:15:14  * ksheedlo-raxchanged nick to ksheedlo
23:03:28  * dan336quit (Quit: Leaving.)