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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to