Hi all,

Sorry to bother you because I don't know if this mailinglist is the
right place to ask this question but I'm sure people could point me in
the right direction.

I need a tool (HttpClient?) to parse a String representation of a
request and a response like exampled below into an object
representation, so not actually perform the request (or response).

Is HttpClient the right tool for this? Or could someone please point
me to the direction of a tool that does

Examples of a String representation of a request and a response:

GET /index.html HTTP/1.1
Host: www.google.nl
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3)
Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Mnenhy/0.7.5.666
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.google.nl/index.html


HTTP/1.1 200 OK
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 03 Jul 2007 13:20:43 GMT
Server: Apache-Coyote/1.1


        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
        <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="nl" lang="nl">
                <head>
                
                (...)
                        
  </html>

-- 

Thanks and regards,

Jeroen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to