Thanks for that anser, but that part was the one I already knew! :-) It
was already answered 2-3 times on the list! :-)
My question is: I get the HttpRequest from Hivemind but when I get the
InputStream, it's empty... is.available() returns 0 bytes while I know
(ethreal sniffing) that data is there!
That arise only when th client send the data in Transfer-Encoding:
chunked mode, if it just sets the Content-Length: field, that's fine.
Any idea how to handle the chunked mode?
-jec
Raul Raja Martinez wrote:
Yes in fact it has been answered by me an other people like 5 or 6 times
already.
I can write a howto for getting a hold of the response , request and
other services from pages, components and custom services if people
think it is a good idea.
James Carman wrote:
This should maybe go into an FAQ or on the Wiki somewhere. I've seen
this
same question 3 times since I joined this list (not too long ago).
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Raul Raja Martinez
Sent: Saturday, March 18, 2006 6:32 PM
To: tapestry-user@jakarta.apache.org
Subject: Re: Getting raw POST data
Just provide this:
private HttpServletRequest request;
public void setHttpServletRequest(HttpServletRequest request) {
this.request = request;
}
Hivemind will autowire the request to your service so that you can use
it like if you were dealing with a Servlet.
best regards.
Raul Raja.
Jean-Eric Cuendet wrote:
Hi,
I have a tapestry service but would like to access the raw data from
the POST http request. Is that possible?
If I do
getRequest().getInputStream() then inputStream.available() returns 0 ...
I tried reset() on IS but it throw an exception saying it's not
supported...
Thanks for any info.
-jec
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]