Time |
S |
Nick |
Message |
00:17 |
|
|
qw3rtman joined #rest |
01:49 |
|
|
pezra joined #rest |
03:36 |
|
|
wilmoore joined #rest |
05:00 |
|
|
systmkor joined #rest |
06:39 |
|
|
wilmoore joined #rest |
07:38 |
|
|
ssedano joined #rest |
09:02 |
|
|
martinfilliau joined #rest |
09:06 |
|
|
vlakarados joined #rest |
10:52 |
|
|
shrink0r joined #rest |
11:49 |
|
|
charlie_ joined #rest |
11:53 |
|
|
danizord joined #rest |
12:06 |
|
|
interop_madness joined #rest |
12:35 |
|
|
jcromartie joined #rest |
12:40 |
|
|
_ollie joined #rest |
13:05 |
|
|
jcromartie joined #rest |
13:09 |
|
|
rosstuck joined #rest |
13:36 |
|
|
samlee joined #rest |
13:38 |
|
|
saml joined #rest |
13:39 |
|
interop_madness |
for a file upload REST service, how would you pass arbitrary filenames? my idea would be via http header: "X-File-Name: <filename>; filename*=utf8''<non-ascii filename adhering to RFC5987>". any suggested improvements? |
14:08 |
|
saml |
interop_madness, multipart? |
14:08 |
|
saml |
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 |
14:12 |
|
interop_madness |
saml, if i'm not mistaken, multipart/form-data merely moves the problem inside the individual message parts, i.e. one would still need to encode non-ascii filenames according to RFC5987 |
14:13 |
|
saml |
what is actual problem? |
14:13 |
|
saml |
headers need to be ASCII as well, right? |
14:14 |
|
interop_madness |
yes, which why RFC5987 had to be conceived for non-ascii filenames |
14:14 |
|
interop_madness |
which is* |
14:14 |
|
saml |
you want to pass non-ascii as is? |
14:14 |
|
saml |
can you decode RFC5987? |
14:15 |
|
interop_madness |
no i could not. http headers have to be ASCII (or rather, ISO-8895-1, IIRC). so anything that cannot be done with this encoding has to be done by means of RFC5987 |
14:16 |
|
interop_madness |
yes i have written a parser for rfc5987 |
14:17 |
|
saml |
https://github.com/kennethreitz/requests/issues/2117 |
14:18 |
|
saml |
stackoverflow.com/questions/20591599/why-arent-post-names-with-unicode-sent-correctly-when-using-multipart-form-data |
14:18 |
|
saml |
i give up |
14:18 |
|
saml |
this is beyond my pay grade |
14:20 |
|
interop_madness |
it's even more horrible when delivering files with unicode file names to the browser ==> browser sniffing, depending on the browser either RFC5987 or even worse stuff |
14:52 |
|
|
jcromartie joined #rest |
15:05 |
|
|
pezra joined #rest |
15:46 |
|
|
systmkor joined #rest |
15:46 |
|
|
qw3rtman joined #rest |
16:48 |
|
|
danfinch joined #rest |
17:52 |
|
|
graste joined #rest |
18:38 |
|
|
blindscreen joined #rest |
18:39 |
|
|
chrismetcalf joined #rest |
18:42 |
|
|
_ollie joined #rest |
18:44 |
|
|
gtramontina joined #rest |
19:22 |
|
|
wilmoore joined #rest |
19:42 |
|
|
pezra joined #rest |
20:48 |
|
|
pezra joined #rest |
21:45 |
|
|
systmkor1 joined #rest |
21:50 |
|
|
pezra joined #rest |
23:17 |
|
|
gtramontina joined #rest |