hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@apache.org>
Subject Re: an important question how can I read the message body
Date Thu, 21 Oct 2010 03:04:28 GMT
Hi Sasikiran

Do you want to implement a blocking, or non-blocking server?

Check the tutorial to get started 
http://hc.apache.org/httpcomponents-core-ga/tutorial/html/
and the examples http://hc.apache.org/httpcomponents-core-ga/examples.html

The getRequestLine() on a HttpRequest [1] will give you the URL parameters

[1] 
http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/HttpRequest.html#getRequestLine()

cheers
asankha
> Hello all,
>
> I am seraching form 2 days on how to handle the post requests. I am building
> a server using core compnents. My handle function has HttpRequest request as
> an argument. The *main question here is how I can read the message body* and
> get the name value pairs of the post request.
>
> http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/HttpRequest.html
>
>
> Request       = Request-Line
>                       *(( general-header
>                        | request-header
>                        | entity-header ) CRLF)
>                       CRLF
>                      * [ message-body ]*
>
> Neither the forums nor the documentation helped me. Any help is greatly
> appreciated.
>
> Thanks
> Sasikrian.
>
>    


-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message