<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-03-20 14:59 GMT-03:00 Leonardo M. Ramé <span dir="ltr"><<a href="mailto:l.rame@griensu.com" target="_blank">l.rame@griensu.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Hi, a CGI I'm making needs to receive a POST message containing binary<br>
data, but it doesn't contain fields, so I cannot access that data from<br>
my program.<br>
<br>
I'm using BrookFramework but if you find a solution using fcl-web is ok.<br>
<br>
Here's the header captured in google chrome:<br>
<br>
POST /index/ HTTP/1.1<br>
Host: <a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a><br>
Connection: keep-alive<br>
Content-Length: 108527<br>
Origin: <a href="http://127.0.0.1:8080" target="_blank">http://127.0.0.1:8080</a><br>
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1897.2 Safari/537.36<br>
Content-Type: application/vnd.oasis.opendocument.text<br>
Accept: */*<br>
Referer: <a href="http://127.0.0.1:8080/webodf/programs/editor/src-localeditor.html" target="_blank">http://127.0.0.1:8080/webodf/programs/editor/src-localeditor.html</a><br>
Accept-Encoding: gzip,deflate,sdch<br>
Accept-Language: es-419,es;q=0.8,en;q=0.6<br>
<br>
Regards,<br>
<span class=""><font color="#888888">--<br>
Leonardo M. Ramé<br>
<a href="http://leonardorame.blogspot.com" target="_blank">http://leonardorame.blogspot.com</a></font></span></blockquote></div><div><br></div><div>Hello,</div><div><br></div><div>In new Brook 3.0 (from trunk), if your request use form-data, you can access the streams via Files property, e.g:</div>

<div><br></div><div>Files.Files[0].Stream;<br></div><div><br></div><div>But, using the "application/vnd.oasis.opendocument.text" content type, I think that you need to use BrookHttpClient.</div><div><br></div>-- <br>

Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>