From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 6F0CFBC48 for ; Thu, 21 Apr 2005 12:41:53 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j3LAfqM1027194 for ; Thu, 21 Apr 2005 12:41:52 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA13412 for ; Thu, 21 Apr 2005 12:41:52 +0200 (MET DST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3LAfqZZ009250 for ; Thu, 21 Apr 2005 12:41:52 +0200 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1DOZ7y-0007kx-00; Thu, 21 Apr 2005 12:41:46 +0200 Received: from [84.167.140.166] (helo=gate.lan.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1DOZ7x-0003yy-00; Thu, 21 Apr 2005 12:41:45 +0200 Received: from flakew.lan.gerd-stolpmann.de (flakew.lan.gerd-stolpmann.de [192.168.0.32]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 1F483C10A; Thu, 21 Apr 2005 12:41:45 +0200 (CEST) Subject: Re: [Ocamlnet-devel] Re: [Caml-list] Re: Common CGI interface From: Gerd Stolpmann To: Florian Hars Cc: Gerd Stolpmann , "O'Caml Mailing List" , ocamlnet-devel@lists.sourceforge.net In-Reply-To: <42675801.3090105@bik-gmbh.de> References: <20050419084526.Q20372@bowser.eecs.harvard.edu> <20050419.210334.63756712.debian00@tiscali.be> <1113940495.6248.101.camel@localhost.localdomain> <20050420.220031.69130073.debian00@tiscali.be> <1114031186.6243.48.camel@localhost.localdomain> <42675801.3090105@bik-gmbh.de> Content-Type: text/plain Date: Thu, 21 Apr 2005 12:41:44 +0200 Message-Id: <1114080104.6247.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at concorde with ID 42678370.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42678370.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 gerd:01 stolpmann:01 donnerstag:01 florian:01 hars:01 gerd:01 stolpmann:01 christophe:01 troestler:01 ocamlnet:01 posts:01 failwith:01 posts:01 ocamlnet:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Am Donnerstag, den 21.04.2005, 09:36 +0200 schrieb Florian Hars: > Gerd Stolpmann wrote: > > Am Mittwoch, den 20.04.2005, 22:00 +0200 schrieb Christophe TROESTLER: > >>Also, why not distinguish simple parameters (for which a method that returns a > >>string is sufficient) and file uploads (for which one clearly wants > >>more flexibility). > > > > Because this is bullshit. > > Oh, by the way, ocamlnet does not work with form data sent by Acrobat Reader, > which POSTs its application/vnd.fdf responses an then runs into > | _ -> > failwith "Netcgi.std_activation: unknown Content-type"; > > Xforms 1.0 allows multipart/related and application/xml, WHATWG Web Forms 2.0 > specify application/x-www-form+xml, text/plain, as well as any legal MIME type > as possible in POSTs, too. So something should be done here. Thank you for the tip. Support for the non-multipart types is quite simple to add, one can map it to one "default" argument (and leave it to the application to parse it). Of course, we could also directly parse the application/xml data, but that would make Ocamlnet dependent on an XML parser. For multipart types the question arises whether to analyze them further, and maybe map to several arguments (but how many levels of nested multiparts?). Gerd > Yours, Florian Hars. > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------