Can anybody tell me how to get or read the value of transfer encoding.
I got the HTTP Response header as "Transfer-Encoding: chunked".But i can't get the chunk size or the chunked data.
Without getting those details i cant read the content of the site.If Content-Length is in the HTTP header,i can read upto that length.But in this Transfer-Encoding case,i cant know any other details except the value "chunked".S o suggest...
User Profile
Collapse
-
VeeraLakshmi started a topic Help me...How to read the content if "Transfer-Encoding:chunked" is used?in JavaHelp me...How to read the content if "Transfer-Encoding:chunked" is used?
I am doing a project for internet control using Java,PHP and MySql.All sites should go through the proxy server only.If the HTTP header contains Content-Length,am getting the content length as below:
...Code:public class HTTPResponseReader extends HTTPMessageReader { String statusCode; public HTTPResponseReader(InputStream istream) throws IOException, NoSuchElementException { -
How to avoid EOFException while using readFully() in java
I am doing a project for internet control using Java,PHP and MySql.All sites
should go through the proxy server only.We are giving access rights as allow or
deny to the sites.If we type the url,first it will ask for authentication. After
giving username and password,the authentication will be confirmed and if the
site has access right as allow,the website will open else a page will be
displayed.There we can send...
No activity results to display
Show More