greptilian logo

IRC log for #rest, 2015-11-11

#rest on freenode has been logged here from May 2014 until end of July 2018 but logging has been suspended because the channel has been riddled with spam since August 2018 with no end in site. See the following blog posts about the problem:

Until the spam problem has been dealt with and logging can resume, please visit our wiki at https://trygvis.io/rest-wiki/

Thanks.

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:02 lemur joined #rest
00:12 fuzzyhorns joined #rest
00:12 anth0ny joined #rest
01:03 lemur joined #rest
01:11 simonv3 joined #rest
01:19 Coldblackice joined #rest
01:26 Coldblackice joined #rest
01:30 Coldblackice joined #rest
02:04 lemur joined #rest
02:19 devinclark joined #rest
02:19 devinclark joined #rest
03:05 baweaver joined #rest
04:06 baweaver joined #rest
04:10 baweaver joined #rest
04:39 bluezone joined #rest
04:57 fuzzyhorns joined #rest
05:22 sfisque joined #rest
05:24 devinclark joined #rest
05:47 fumanchu_ joined #rest
05:58 fuzzyhorns joined #rest
06:09 ReScO joined #rest
06:47 baweaver joined #rest
07:00 fuzzyhorns joined #rest
07:04 Coldblackice joined #rest
07:40 wsiqueir joined #rest
07:41 fumanchu joined #rest
07:48 baweaver joined #rest
08:01 fuzzyhorns joined #rest
08:28 Coldblackice joined #rest
09:01 fuzzyhorns joined #rest
09:05 graste joined #rest
09:34 interop_madness joined #rest
09:50 baweaver joined #rest
10:02 fuzzyhorns joined #rest
10:44 mezod joined #rest
10:51 baweaver joined #rest
11:03 fuzzyhorns joined #rest
11:52 baweaver joined #rest
12:05 fuzzyhorns joined #rest
12:53 baweaver joined #rest
12:56 devinclark joined #rest
13:06 fuzzyhorns joined #rest
13:31 fuzzyhorns joined #rest
13:43 rosstuck joined #rest
13:54 baweaver joined #rest
14:15 anth0ny joined #rest
14:43 pdurbin Activity Streams - a format for syndicating social activities around the web - http://activitystrea.ms
14:45 fuzzyhorns joined #rest
14:48 trygvis I remember when I was looking at it I was hoping for a way to pull changesets on data but I was disappointed
14:49 trygvis but it looked good for the things it was designed to do
14:50 pdurbin people seem to like it: http://socialwg.indiewebcamp.com/irc/social/2015-11-11
14:55 baweaver joined #rest
15:03 baweaver joined #rest
15:21 anth0ny_ joined #rest
15:24 blahdeblah_ joined #rest
15:44 wavded joined #rest
15:46 fuzzyhorns joined #rest
15:47 ralphschindler joined #rest
16:11 devinclark joined #rest
16:12 sfisque joined #rest
16:13 ChrisAnn_ joined #rest
16:13 whartung_ joined #rest
16:15 riddle joined #rest
16:16 zama_ joined #rest
16:18 pith joined #rest
16:24 bluezone joined #rest
16:25 blahdeblah joined #rest
16:47 fuzzyhorns joined #rest
17:00 wavded joined #rest
17:00 devinclark joined #rest
17:02 baweaver joined #rest
17:34 wavded_ joined #rest
17:39 devinclark joined #rest
17:39 devinclark joined #rest
17:49 fuzzyhorns joined #rest
18:03 lemur joined #rest
18:50 fuzzyhorns joined #rest
18:51 wavded joined #rest
19:04 baweaver joined #rest
19:14 wavded joined #rest
19:24 devinclark joined #rest
19:38 wavded joined #rest
19:51 fuzzyhorns joined #rest
20:06 baweaver joined #rest
20:06 logikos I have some forms which submit a file along with the other data (for both create & update) .. is it wrong to use POST for updates as it supports formdata ?
20:08 pdurbin POST is what they show at https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects
20:09 trygvis pdurbin: that is assuming that you're using HTML/javascript
20:10 pdurbin so?
20:25 logikos I'm using html/javascript client side, its just from my reading everyone says to use POST to create and PUT to update but using PUT with formdata would suck....
20:25 pdurbin why would it suck?
20:27 logikos well firstly html only supports 'get' and 'post' as valid options for the method attribute of the form element
20:28 pdurbin ah
20:28 pdurbin so the question is if it's ever valid to use POST for updates
20:29 logikos also serverside i am using PHP which has native support for POST but the support for PUT is you just have the unparsed input string
20:29 logikos so to use formdata I would have to find and use or make myown formdata parser
20:29 logikos yes
20:29 logikos that is the question
20:30 logikos if not for the file upload (which requires formdata) i could just PUT the key:value 's as JSON and jsondecode() it serverside
20:30 logikos but when submiting a form with a file... ...
20:30 pdurbin maybe this deserves an entry at https://trygvis.io/rest-wiki/
20:30 logikos perhaps
20:31 logikos i am still very new to REST, but I like the concept and want to start using it
20:32 logikos the only other option I could think of is to PUT the files by themself to a location on the server and then PUT the data and supply the location of the file for that key
20:32 logikos but that would require the client to know of valid locations to PUT the file
20:33 logikos PHP supports PUT being used to create or overwrite a file at a location
20:33 logikos but the file contents make up the request body
20:33 logikos so no room for extra data etc, not to mention some forms are able to submit multiple files
20:37 pdurbin hmm
20:38 pdurbin yeah, I'm seeing PUT under "editing a resource" http://bitworking.org/projects/atom/rfc5023.html#edit
20:38 pdurbin Do REST and HTML forms live in different worlds?
20:50 pdurbin logikos: are you using application/x-www-form-urlencoded or multipart/form-data?
20:51 fuzzyhorns joined #rest
21:07 lemur joined #rest
21:07 devinclark joined #rest
21:18 Coldblackice joined #rest
21:38 whartung The problem with formdata is that it's typically not the data type for the resource.
21:52 fuzzyhorns joined #rest
22:02 simonv3 joined #rest
22:07 lemur joined #rest
22:19 ChrisAnn joined #rest
22:53 fuzzyhorns joined #rest
22:59 fuzzyhorns joined #rest

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

#rest on freenode has been logged here from May 2014 until end of July 2018 but logging has been suspended because the channel has been riddled with spam since August 2018 with no end in site. See the following blog posts about the problem:

Until the spam problem has been dealt with and logging can resume, please visit our wiki at https://trygvis.io/rest-wiki/

Thanks.