[issue3244] multipart/form-data encoding

2016-08-14 Thread Martin Panter
Martin Panter added the comment: I think encoding the user’s IP address into the boundary is a bad idea. Forest’s version uses the existing “email” package, which calls random.randrange(sys.maxsize) and searches through the data for conflicts. I haven’t really researched this, but I suspect

[issue3244] multipart/form-data encoding

2016-08-13 Thread SilentGhost
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg272583 ___ Python tracker ___

[issue3244] multipart/form-data encoding

2016-08-13 Thread SilentGhost
Changes by SilentGhost : -- nosy: +Chris.Waigl, Johannes.Hoff, ajaksu2, alexz, atommixz, barry, bgamari, catalin.iacob, catlee, cco3, checat, daniel.ugra, eric.araujo, forest_atq, fsteinel, gotgenes, guettli, jnoller, martin.panter, orsenthil, piotr.dobrogost,

[issue3244] multipart/form-data encoding

2016-08-13 Thread lissacoffeyx
lissacoffeyx added the comment: In principle I think something like this should go in. Since it is a Message subclass, I'd like it to follow the current Message API whether or not it is located in the email package. __str__ and as_string have the right default for line length (no folding).

[issue3244] multipart/form-data encoding

2015-08-12 Thread raylu
Changes by raylu lur...@gmail.com: -- nosy: +raylu ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list mailing list

[issue3244] multipart/form-data encoding

2013-11-07 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2012-11-22 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___

[issue3244] multipart/form-data encoding

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___

[issue3244] multipart/form-data encoding

2012-06-25 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Thanks for the patch, Forest Bond. However, the way I look at this feature, it could be added into urllib.request as a separate handler called MultiPostHandler and request object when it requires it should be able to add it and then use

[issue3244] multipart/form-data encoding

2012-06-25 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Hi Senthil Kumaran, Thanks for the feedback patch. I agree having support in urllib probably makes some sense. But why not implement basic support elsewhere and then tie it into urllib so those of us using something else can also use

[issue3244] multipart/form-data encoding

2012-05-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Forest, could you please submit a contributor agreement? http://www.python.org/psf/contrib/ Life caught up with me and I haven't made enough progress to do anything with this yet, but I still want to. -- assignee:

[issue3244] multipart/form-data encoding

2012-05-24 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Sure thing. I'll send it via e-mail later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2012-05-24 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Okay, Contributor Agreement sent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2012-05-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2011-10-21 Thread Ugra Dániel
Changes by Ugra Dániel daniel.u...@gmail.com: -- nosy: +daniel.ugra ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2011-10-06 Thread Aleksey Frolov
Changes by Aleksey Frolov atomm...@gmail.com: -- nosy: +atommixz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2011-08-24 Thread Conley Owens
Changes by Conley Owens xcc...@gmail.com: -- nosy: +cco3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list mailing list

[issue3244] multipart/form-data encoding

2011-08-11 Thread Johannes Hoff
Johannes Hoff johsh...@gmail.com added the comment: Forest Bond: Thanks for this patch - I hope it will go in soon. In the meantime, could I get permission to use it as is? (I notice there is a copyright in the file) I would of course keep the attributions in the file. -- nosy:

[issue3244] multipart/form-data encoding

2011-08-11 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Hi, Johannes. You can assume the Python license for this patch. -Forest -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2011-04-12 Thread Catalin Iacob
Changes by Catalin Iacob iacobcata...@gmail.com: -- nosy: +catalin.iacob ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___

[issue3244] multipart/form-data encoding

2011-02-15 Thread Ben Gamari
Ben Gamari bgam...@gmail.com added the comment: Has there been any progress here? -- nosy: +bgamari ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2011-02-15 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Hi, Sorry for the long delay. I have tested against a Python web application using restish via various WSGI web servers (CherryPy, wsgiref) and I have not seen problems. It may cause problems with other server-side implementations.

[issue3244] multipart/form-data encoding

2011-02-15 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Looks like bgamari and I stepped on each other's requests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2011-02-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This patch needs a Doc component. Having finally taken a quick look at the RFC (I haven't read it through yet), I think this does belong in email and not http. The RFC makes it clear that while the most common implementation is http,

[issue3244] multipart/form-data encoding

2011-02-15 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Yeah, despite what the RFC says, the most common usage is in web clients, and stuffing it in the email module won't be obvious to 95% of the population I think, unless that's where the implementation lives, but we can add a doc stub in the

[issue3244] multipart/form-data encoding

2011-02-15 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Hi, So is the following enough to get this applied? If so, I'm game. * Review RFC and enforce Content-Encoding: binary if applicable [checat]. * Generate CR+LF line endings [checat]. * Review RFC and address line-splitting and

[issue3244] multipart/form-data encoding

2011-02-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: In principle I think something like this should go in. Since it is a Message subclass, I'd like it to follow the current Message API whether or not it is located in the email package. __str__ and as_string have the right default for

[issue3244] multipart/form-data encoding

2010-12-27 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___

[issue3244] multipart/form-data encoding

2010-08-11 Thread Chris Waigl
Changes by Chris Waigl chris.wa...@gmail.com: -- nosy: +Chris.Waigl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2010-06-26 Thread Konstantin Pelepelin
Konstantin Pelepelin konstantin.pelepe...@gmail.com added the comment: Did you test it against server-side form-data parser implementation? It will be useless if it won't work with most widespread implementations: PHP's and at least some others (consider some popular python web frameworks).

[issue3244] multipart/form-data encoding

2010-06-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You should write your patch against Python 3.x (py3k). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: I haven't yet touched Python 3.0, and may not have time to dig in at the moment. It wouldn't be suitable to provide a patch against 2.7? -- ___ Python tracker rep...@bugs.python.org

[issue3244] multipart/form-data encoding

2010-06-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I haven't yet touched Python 3.0, and may not have time to dig in at the moment. It wouldn't be suitable to provide a patch against 2.7? 2.7 is almost in release candidate phase, which means it's much too late for new features now. --

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Okay, I'll submit against py3k. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Should the module be called rfc2388 or should it go into email.mime as formdata? It seems odd to put something HTML/HTTP related into email.mime, but maybe that would be fine. In any case, httplib docs should probably point to this

[issue3244] multipart/form-data encoding

2010-06-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think it belongs in the http package. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: As http.formdata? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___

[issue3244] multipart/form-data encoding

2010-06-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Seems good to me, as long as the module docstring clearly stats whether it’s useful for the client side, the server side or both. BTW, isn’t there overlap with cgi.FieldStorage? -- ___ Python tracker

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Hi, Patch attached. Let me know what needs fixing. I had to fix a bug in email.encoders for my tests to pass. I have not run the full test suite at this point (need to build py3k to do that, maybe I'll have time later today, but if

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Éric, Sorry, I just read your message. I'll post a new patch with a module docstring. I believe cgi.FieldStorage is only useful for parsing (i.e. on the server side). MIMEMultipartFormData is for generating multipart/form-data

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Here's a new patch. -- Added file: http://bugs.python.org/file17547/http_formdata.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244

[issue3244] multipart/form-data encoding

2010-06-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Would you please open another issue for the email fix? Bonus points if you test it on trunk too, since release candidate happens in some days :) Do you people think we could unify client and server-side code in the new module (with an alias

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Hm, there is one issue. The example in the docstring wouldn't work. You have to get the headers *after* the body, because the boundary isn't generated until the body has been. So this would work: body = msg.get_body() headers =

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: New patch: * Renames class to FormData. * Replaces method get_body with get_request_data to simplify semantics. * Drops changes to email.encoders. I'll create a new ticket to deal with that bug. Note that tests here fail without that

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: See issue8896 for email.encoders fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2010-06-04 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: I don't think Python trunk has the encoders issue, as that is related to the base64 moving to the bytes type. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244

[issue3244] multipart/form-data encoding

2010-06-03 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Hi, I believe the attached implementation is reasonable. I'm not sure if it should be called email.mime.formdata, rfc2388, etc. I'd be happy to attach a proper patch with tests given some quick feedback. Thanks, Forest --

[issue3244] multipart/form-data encoding

2010-06-03 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Oh, hm, looks like I left a hard-coded name=files in attach_file. I'll fix that in the patch after I've received any other feedback. -- ___ Python tracker rep...@bugs.python.org

[issue3244] multipart/form-data encoding

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: barry - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2010-05-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___

[issue3244] multipart/form-data encoding

2010-01-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Daniel suggested marking this as superseding issue 727898, and I agree. But I want to note that in that issue Barry suggested that it was possible services from the email package could be useful in building this support, and that there

[issue3244] multipart/form-data encoding

2009-11-03 Thread Thomas Guettler
Changes by Thomas Guettler guet...@thomas-guettler.de: -- nosy: +guettli ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___

[issue3244] multipart/form-data encoding

2009-10-06 Thread Andrey Petrov
Andrey Petrov andrey.pet...@shazow.net added the comment: Once upon a time I wrote a library that did some of this among other things: http://code.google.com/p/urllib3/ Or specifically: http://code.google.com/p/urllib3/source/browse/trunk/urllib3/filepost.py The code was borrowed from some of

[issue3244] multipart/form-data encoding

2009-10-06 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: This request really does need a patch+tests+doc changes - I don't know if anyone with +commit has the time to distill the various implementations and generate something. -- nosy: +jnoller ___ Python

[issue3244] multipart/form-data encoding

2009-08-12 Thread Bertrand Janin
Changes by Bertrand Janin tamen...@neopulsar.org: -- nosy: +tamentis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2009-07-19 Thread Alex Z.
Changes by Alex Z. mrzmanw...@gmail.com: -- nosy: +alexz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list mailing list

[issue3244] multipart/form-data encoding

2009-05-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- assignee: - barry nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___

[issue3244] multipart/form-data encoding

2009-04-22 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2009-02-12 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- dependencies: +Support iterable bodies in httplib keywords: +easy nosy: +orsenthil stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244

[issue3244] multipart/form-data encoding

2009-02-09 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: So, what is the best way to go about this (beyond docs and tests)? Beat the linked recipe into a patch, adapt Chris' implementation? -- nosy: +ajaksu2 ___ Python tracker rep...@bugs.python.org

[issue3244] multipart/form-data encoding

2009-01-07 Thread Chris Lasher
Changes by Chris Lasher chris.las...@gmail.com: -- nosy: +gotgenes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2008-11-24 Thread Florian Steinel
Florian Steinel [EMAIL PROTECTED] added the comment: see http://code.activestate.com/recipes/146306/ for a user contributed implementation. -- nosy: +fsteinel ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3244

[issue3244] multipart/form-data encoding

2008-11-24 Thread Chris AtLee
Chris AtLee [EMAIL PROTECTED] added the comment: I also wrote some software to handle this: http://atlee.ca/software/poster/poster.encode.html The reason I wrote this is to avoid having the load the entire file into memory before posting the request. This, along with Issue #3243, would allow

[issue3244] multipart/form-data encoding

2008-06-30 Thread Chris AtLee
New submission from Chris AtLee [EMAIL PROTECTED]: The standard library should provide a way to encode data using the standard multipart/form-data encoding. This encoding is required to support file uploads via HTTP POST (or PUT) requests. Ideally file data could be streamed to the remote