On Fri, Nov 09, 2001 at 05:36:11PM -0600, Ian Bicking wrote: > > > If I do an upload via HTTP, how can I do the client side in Python? > > > urllib.urlencode(vars) works for normal POST, right? But I have the > > > impression there's something more complicated (MIME-like) for image > > > uploading (the multipart/form-data enctype...?) > > > > I think you want to use HTTP PUT, not POST, to upload. But I haven't > > done it. > > Can Webware respond to PUT? I only vaguely even remember hearing > about that command. > > I was thinking more of a form, like: > <form enctyp="multipart/form-data" method="POST"> > <input type="file" name="file"> > </form>
Do you have to send the image as part of a larger form? I was talking about uploading a single file without anything else, the opposite of GET. Webware certainly has hooks for this, see HTTPServlet.respondToPut() . If you want to do a file upload as part of a form, make a real form with a file-upload control, use it, and intercept the request to see what the browser sends the server. -- -Mike (Iron) Orr, [EMAIL PROTECTED] (if mail problems: [EMAIL PROTECTED]) http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
