[00:33:10] ssedano (~ssedano@unaffiliated/ssedano) left irc: Quit: WeeChat 0.3.4 [00:40:32] ssedano (~ssedano@unaffiliated/ssedano) joined #rest. [01:57:10] Wombert (~Wombert@dslb-088-066-204-163.pools.arcor-ip.net) joined #rest. [02:17:33] RLa (~RL@133.220.190.90.dyn.estpak.ee) joined #rest. [02:18:16] i'm trying to implement authentication for using rest resources [02:18:39] but i'm not sure which response status code send for failed attempt [02:23:47] http basic authentication should be used? [02:29:00] look at 401 and 403 [02:30:42] basically, use 401 if the agent didn't send any headers, 403 if the agent is not allowed access even with credentials [02:31:59] i first thought about using session for authentication [02:32:25] 401: "The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.47) containing a challenge applicable to the requested resource." [02:32:48] so i probably cannot use 401 for session-based authentication [02:32:57] why not? [02:33:17] doesn't that trigger external dialog in the browser? [02:33:41] only for the authentication methods the browser support [02:33:48] oh [02:34:05] are you going to access this service with a browser? [02:34:31] or is it just for testing? [02:34:48] yes, with browser, using javascript [02:35:29] i'm writing small management interface for the system i develop here [02:35:58] the browser won't pop up an authentication dialog for async calls, you'll see the 401 error directly on the response object [02:36:23] it's much easier to implement management interface on server side with rest than with standard way, by generating lot of html [02:36:36] true that, I love it [02:36:49] trygvis, that would be very good [02:38:34] I do find that browser rest applications tend to be a bit different from m2m applications [02:38:59] blongden (~blongden@nocarrier.co.uk) joined #rest. [02:41:25] i see no difference, using only json as transport protocol [02:41:55] some things generate html responses, that might be difference [02:42:53] i build html from received json data on the browser [02:43:14] so i guess some non-browser client could use these services too [02:43:50] as long as you use json to generate all the calls it's more m2m than h2m [02:46:13] (which is good) [03:00:37] DracoBlue (~Adium@dslb-088-075-066-254.pools.arcor-ip.net) joined #rest. [03:01:56] DracoBlue (~Adium@dslb-088-075-066-254.pools.arcor-ip.net) left #rest. [03:09:41] hm, seems like if there is authentication required for the whole admin page, and user has successful attempt, then all requests made from that page have authentication headers automatically added? [03:09:54] it would make lot of things very very easy [03:10:00] quest88 (~quest88@c-98-207-205-137.hsd1.ca.comcast.net) joined #rest. [03:14:16] quest88 (~quest88@c-98-207-205-137.hsd1.ca.comcast.net) left irc: Ping timeout: 240 seconds [03:46:29] dipeshbista (~dipeshbis@111.165.38.113) joined #rest. [03:47:28] dipeshbista (~dipeshbis@111.165.38.113) left #rest. [04:31:05] Wombert (~Wombert@dslb-088-066-204-163.pools.arcor-ip.net) left irc: Quit: Wombert [04:32:19] RLa (~RL@133.220.190.90.dyn.estpak.ee) left irc: Quit: Leaving [05:35:32] bigbluehat (~bigblueha@nmd.sbx08595.greensc.wayport.net) joined #rest. [05:36:07] bigbluehat_ (~byoung@nmd.sbx08595.greensc.wayport.net) joined #rest. [05:36:30] bigbluehat_ (~byoung@nmd.sbx08595.greensc.wayport.net) left irc: Client Quit [05:44:18] gchristensen (~gchristen@unaffiliated/grahamc) joined #rest. [05:50:25] Wombert (~Wombert@munich.bitextender.net) joined #rest. [06:06:11] grove (~grove@aggw006.cappelendamm.no) left irc: Quit: grove [06:28:24] gchristensen (~gchristen@unaffiliated/grahamc) left irc: Quit: Leaving... [06:50:54] fu-manchu (~fumanchu@99.30.180.185) joined #rest. [07:00:51] grove (~grove@193.201.9.46.customer.cdi.no) joined #rest. [07:23:00] tehviking (u2893@gateway/web/irccloud.com/x-gbiopjtcysonbogo) left irc: Remote host closed the connection [07:23:01] omarkj (u766@gateway/web/irccloud.com/x-ctcxxweotxtqepaz) left irc: Read error: Connection reset by peer [07:36:09] tehviking (u2893@gateway/web/irccloud.com/x-yqqcfeyvarlgnntc) joined #rest. [07:48:04] KarlHungus (~relax@unaffiliated/adj) joined #rest. [07:51:47] KarlHungus (~relax@unaffiliated/adj) left irc: Client Quit [07:52:38] KarlHungus (~relax@unaffiliated/adj) joined #rest. [07:52:40] omarkj (u766@gateway/web/irccloud.com/x-wyyribwfrjkgrzcr) joined #rest. [07:54:19] gchristensen (~gchristen@unaffiliated/grahamc) joined #rest. [08:02:44] Action: mamund shows up [08:04:34] wav1 (~Adium@68-240-104-3.pools.spcsdns.net) joined #rest. [08:15:27] ivanfi (~ivanfi@62.159.77.164) joined #rest. [08:35:01] ivanfi (~ivanfi@62.159.77.164) left #rest. [08:36:44] grove (~grove@193.201.9.46.customer.cdi.no) left irc: Quit: grove [08:41:40] bigbluehat (~bigblueha@nmd.sbx08595.greensc.wayport.net) left irc: Quit: Leaving. [08:59:39] whartung (~whartung@wsip-98-189-78-118.oc.oc.cox.net) joined #rest. [09:00:17] whartung (~whartung@wsip-98-189-78-118.oc.oc.cox.net) left irc: Client Quit [09:00:29] whartung (~whartung@wsip-98-189-78-118.oc.oc.cox.net) joined #rest. [09:00:48] o/ [09:01:24] \o [09:07:41] mikekk (~mike@87.244.79.7) joined #rest. [09:15:10] bigbluehat (~bigblueha@adsl-98-71-133-72.gsp.bellsouth.net) joined #rest. [09:16:37] mikekk (~mike@87.244.79.7) left irc: Quit: Lost terminal [09:22:27] grove (~grove@193.201.9.46.customer.cdi.no) joined #rest. [09:30:54] KevBurnsJr (~KevBurnsJ@50.0.103.39) joined #rest. [09:50:53] bigbluehat (~bigblueha@adsl-98-71-133-72.gsp.bellsouth.net) left irc: Quit: Leaving. [10:06:57] bigbluehat (~bigblueha@adsl-98-71-133-72.gsp.bellsouth.net) joined #rest. [10:19:26] mephju (~mephju@dslb-188-103-176-143.pools.arcor-ip.net) joined #rest. [10:30:16] hobodave (~hobodave@pdpc/supporter/professional/hobodave) joined #rest. [10:41:28] Nick change: KeeperOfTheSoul -> chilversc [11:24:25] mephju (~mephju@dslb-188-103-176-143.pools.arcor-ip.net) left irc: Quit: Verlassend [11:30:11] Action: mamund taps glass to see if any of the fishies are still alive [11:31:15] bubble bubble [11:31:29] Action: mamund is relieved :) [11:36:10] grove (~grove@193.201.9.46.customer.cdi.no) left irc: Quit: grove [11:45:13] Wombert (~Wombert@munich.bitextender.net) left irc: Quit: Wombert [12:10:00] ok [12:10:26] this is gerting really boring ppl! [12:11:53] this quiet channel? [12:15:00] ok, uh... "the Link header is the most useless extension to the HTTP protocol since the 'Safe' header in HTCPCP!" [12:15:15] see, that's better! [12:42:15] Wombert (~Wombert@dslb-088-067-188-199.pools.arcor-ip.net) joined #rest. [13:57:28] wav1 (~Adium@68-240-104-3.pools.spcsdns.net) left irc: Quit: Leaving. [14:05:49] grove (~grove@193.201.9.46.customer.cdi.no) joined #rest. [14:06:43] grove (~grove@193.201.9.46.customer.cdi.no) left irc: Client Quit [14:19:21] bigbluehat (~bigblueha@adsl-98-71-133-72.gsp.bellsouth.net) left irc: Quit: Leaving. [14:26:38] Shapeshifter (~Shapeshif@saskatoon.icu.uzh.ch) joined #rest. [15:02:20] Action: mamund thinks it's too noisy in here, heading to a library instead. so long! [15:04:41] hmm? I thought this was a restful channel? I came here to sleep [15:39:28] gchristensen (~gchristen@unaffiliated/grahamc) left irc: Quit: Leaving... [16:04:25] Wombert (~Wombert@dslb-088-067-188-199.pools.arcor-ip.net) left irc: Quit: Wombert [16:25:54] lmarburger (u1979@gateway/web/irccloud.com/x-fynqtlapeqosldqp) joined #rest. [16:42:00] gchristensen (~gchristen@unaffiliated/grahamc) joined #rest. [16:47:30] gchristensen (~gchristen@unaffiliated/grahamc) left irc: Read error: Connection reset by peer [16:47:44] gchristensen (~gchristen@unaffiliated/grahamc) joined #rest. [17:14:10] gchristensen (~gchristen@unaffiliated/grahamc) left irc: Quit: Leaving... [17:51:42] darrelmiller (~darrelmil@bas1-montreal08-1279564619.dsl.bell.ca) joined #rest. [18:09:16] KevBurnsJr (~KevBurnsJ@50.0.103.39) left irc: [19:27:53] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) left irc: Ping timeout: 252 seconds [19:42:25] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) joined #rest. [19:46:30] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) left irc: Ping timeout: 244 seconds [20:12:22] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) joined #rest. [20:59:52] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) left irc: Ping timeout: 244 seconds [21:25:27] scudco (~scudco@cpe-75-85-13-152.socal.res.rr.com) joined #rest. [21:29:26] grove (~grove@193.201.9.46.customer.cdi.no) joined #rest. [21:29:52] grove (~grove@193.201.9.46.customer.cdi.no) left irc: Client Quit [21:53:45] Wombert (~Wombert@dslb-088-067-188-199.pools.arcor-ip.net) joined #rest. [22:12:38] grove (~grove@aggw006.cappelendamm.no) joined #rest. [22:54:09] Wombert (~Wombert@dslb-088-067-188-199.pools.arcor-ip.net) left irc: Read error: Connection reset by peer [22:54:22] Wombert (~Wombert@dslb-088-067-188-199.pools.arcor-ip.net) joined #rest. [23:15:07] kennethreitz (~kennethre@c-24-127-96-129.hsd1.va.comcast.net) left irc: Quit: Computer has gone to sleep. [00:00:00] --- Tue Dec 13 2011