Version française
Home     About     Download     Resources     Contact us    
Browse thread
CamlGI question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Ocamlnet-devel] Re: [Caml-list] Re: Common CGI interface
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
------------------------------------------------------------