From: Pierre-Alexandre V. <ont...@gm...> - 2011-12-12 17:54:21
|
Hello, I'm trying to finding my path to uploading a file via HTTP/POST, by parsing a multipart form data, and i have to admit i'm lost. I start from a netcgi, which with i can handle argument let process (cgi : Netcgi.cgi_activation) = try let out = cgi # output # output_string in match cgi#request_method with | `POST -> let t = cgi#environment#input_header() in out "rrrhh" cgi # output # commit_work(); with error -> print_endline "toto" ;; As far as i understand, i have to get the raw data, and to parse it with Netmime module, so my value "t" which contains cgi#environment#input_header() would contains interesting data, but the type Netmime.mime_header only provide methods to modify data.. Does anyone could give a hook to find a path ? Thank you very much, Regards, P-A -- --------------------- https://twitter.com/#!/ontologiae/ http://linuxfr.org/users/montaigne |