Re: is onCharReceived called after onResponseReceived? and accessing HttpResponse in AsyncHttpClient

2013-04-18 Thread Oleg Kalnichevski
y testing shows so but I am looking for official documentation. Can > someone please point to me to documentation which describes the order in > which these events are called > ​? > Unfortunately other things always kept me busy and I had no bandwidth for HttpAsyncClient document

is onCharReceived called after onResponseReceived? and accessing HttpResponse in AsyncHttpClient

2013-04-16 Thread Gaurav Kumar
which these events are called ​? 2) Also, does HttpResponse response in onResponseReceived ( ​ org.apache.ht ​​ tp.nio.client.methods.AsyncCharConsumer ​)​ contain full response or just headers? ​I think it contains only headers as when I try to access content, I get exception- SEVERE: http-outgoing-2

Re: How to get HttpResponse viewed in a JEditorPane?

2012-07-31 Thread William Speirs
orm and I would like to view the result in a > JEditorpane something like: > > HttpPost httppost = new HttpPost( form.getAction() ); > httppost.setEntity(entity); > HttpResponse httpResponse = httpclient.execute(httppost); > InputStreamReader inputStreamReader = new > InputStream

How to get HttpResponse viewed in a JEditorPane?

2012-07-30 Thread Fredrik Andersson
HttpPost httppost = new HttpPost( form.getAction() ); httppost.setEntity(entity); HttpResponse httpResponse = httpclient.execute(httppost); InputStreamReader inputStreamReader = new InputStreamReader(httpResponse.getEntity().getContent()); BufferedReader bufferedReader = new Buff

Re: HttpResponse raw data

2012-07-12 Thread andrefe
In order to strees what I am looking for: I'd like to retrieve an HttpResponse representation that, if inserted in a (properly setup) TCP/IP payload sent to another listening host (also using HttpClient), would be successfully decoded by a HttpClient process waiting on the execute fo

Re: HttpResponse raw data

2012-07-12 Thread andrefe
nt, parsed from a byte array response handler that I've implemented String resp = new String(responseHandler.handleResponse(httpResponse),"UTF-8"); stringBuffer.append(resp).append("\n"); Still, the given output of while fetching an HTML web page (i.e. google.com) is dif

Re: HttpResponse raw data

2012-07-12 Thread Stephen J. Butler
On Thu, Jul 12, 2012 at 12:51 PM, andrefe wrote: > Using HttpClient 4.2, I was wondering why the capability of retrieving the > raw byte content that is parsed in a HTTP response is not supported: am I > missing something? > > In other words, is not possible to obtain the very same output of a GET

HttpResponse raw data

2012-07-12 Thread andrefe
HttpClient methods? Best, Federico -- View this message in context: http://old.nabble.com/HttpResponse-raw-data-tp34152297p34152297.html Sent from the HttpClient-User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: Obtaining charset of page from HttpResponse.

2011-08-16 Thread Khosro Asgharifard Sharabiani
>Sent: Tuesday, August 16, 2011 6:27 PM >Subject: Re: Obtaining charset of page from HttpResponse. > >Hi Khosro, > >Detecting the charset for an arbitrary HTML page is a non-trivial problem, and >not something that is in scope for HttpClient. > >E.g. sometimes the re

Re: Obtaining charset of page from HttpResponse.

2011-08-16 Thread Khosro Asgharifard Sharabiani
sday, August 16, 2011 5:57 PM >Subject: Re: Obtaining charset of page from HttpResponse. > >I forgot to mention in my previous post that you can use >BufferedHttpEntity when you would stream the content of the entity: in >that case the content also gets fetched only once. > >Kind r

Re: Obtaining charset of page from HttpResponse.

2011-08-16 Thread Ken Krugler
; Khosro. >> >> >>> >>> From: Stijn Deknudt >>> To: HttpClient User Discussion >>> Cc: Khosro Asgharifard Sharabiani >>> Sent: Tuesday, August 16, 2011 4:38 PM >>> Subject: Re: Obtaining charset of pag

Re: Obtaining charset of page from HttpResponse.

2011-08-16 Thread Stijn Deknudt
ge ,we can >> not >> get charset of that webpage. >> >> Khosro. >> >> >>>____ >>>From: Stijn Deknudt >>>To: HttpClient User Discussion >>>Cc: Khosro Asgharifard Sharabiani >>>Sent: Tuesday, A

Re: Obtaining charset of page from HttpResponse.

2011-08-16 Thread Stijn Deknudt
_ >>From: Stijn Deknudt >>To: HttpClient User Discussion >>Cc: Khosro Asgharifard Sharabiani >>Sent: Tuesday, August 16, 2011 4:38 PM >>Subject: Re: Obtaining charset of page from HttpResponse. >> >>Hi Khosri, >> >>

Re: Obtaining charset of page from HttpResponse.

2011-08-16 Thread Jon Moore
t charset of that webpage. > > Khosro. > > >> >>From: Stijn Deknudt >>To: HttpClient User Discussion >>Cc: Khosro Asgharifard Sharabiani >>Sent: Tuesday, August 16, 2011 4:38 PM >>Subject: Re: Obtaining charset of page from HttpRe

Re: Obtaining charset of page from HttpResponse.

2011-08-16 Thread Khosro Asgharifard Sharabiani
ijn Deknudt >To: HttpClient User Discussion >Cc: Khosro Asgharifard Sharabiani >Sent: Tuesday, August 16, 2011 4:38 PM >Subject: Re: Obtaining charset of page from HttpResponse. > >Hi Khosri, > >The Content-Type header is set (correctly) to "text/html", like Jon

Re: Obtaining charset of page from HttpResponse.

2011-08-16 Thread Stijn Deknudt
arifard Sharabiani > wrote: >> Hello, >> I use the following code to find charset of a page,but it does not worked >> for page >> "http://www.annahar.com/content.php?priority=1&table=main&type=main&day=Mon"; >> >> Code : >>  [code] >>

Re: Obtaining charset of page from HttpResponse.

2011-08-16 Thread Jon Moore
it does not worked for > page > "http://www.annahar.com/content.php?priority=1&table=main&type=main&day=Mon"; > > Code : >  [code] > > try { > HttpClient httpclient = new DefaultHttpClient(); > String > url="http://www.annahar.com/content.php?

Obtaining charset of page from HttpResponse.

2011-08-16 Thread Khosro Asgharifard Sharabiani
www.annahar.com/content.php?priority=1&table=main&type=main&day=Mon";; HttpGet httpget = new HttpGet(url); HttpResponse response; response = httpclient.execute(httpget); HttpEntity entity = response.getEntity(); if (entity != null) { Header[] allHeaders = response.getHeaders("Content-

Re: Compile error (HttpResponse not found in any jar)

2011-01-02 Thread Isao Isaac Saito
Thanks Sebb. Now I can see the javadoc for HttpResponse with your link. I got the URL I sent from the .html files included in the javadoc folder in the downloads, which should look something like httpcomponents-client-4.0.3/javadoc/index.html . Isaac On Sun, Jan 2, 2011 at 5:41 PM, sebb wrote

Re: Compile error (HttpResponse not found in any jar)

2011-01-02 Thread sebb
oth >> tar.gz and zip, but the result is all the same (*1 shows jar command's >> result). >> >> Phenomenon-2. javadoc for HttpResponse is not found in downloadable. >> The URL below shows "Not Found". >> http://hc.apache.org/httpcomponents-core/httpc

Re: Compile error (HttpResponse not found in any jar)

2011-01-02 Thread Isao Isaac Saito
ea? > > Phenomenon-1. HttpResponse.class is found neither in > httpclient-4.0.3.jar nor httpmime-4.0.3.jar that are only 2 jar files > included in downloadable. I tried several mirror server using both > tar.gz and zip, but the result is all the same (*1 shows jar command's > r

Compile error (HttpResponse not found in any jar)

2011-01-02 Thread Isao Isaac Saito
ror server using both tar.gz and zip, but the result is all the same (*1 shows jar command's result). Phenomenon-2. javadoc for HttpResponse is not found in downloadable. The URL below shows "Not Found". http://hc.apache.org/httpcomponents-core/httpcore/apidocs/org/apache/http/HttpResp

Re: HTTPResponse

2009-06-05 Thread Charles François Rey
().setCredentials(new AuthScope(DEVSERVER, PORT, REALM), defaultcreds); System.out.println("Retrieving... "); try { HttpResponse convertedResponse = client.execute(httpget); System.out.println("Connection: " + convertedResponse.getHeaders("Connec

HTTPResponse

2009-06-04 Thread zarian
), defaultcreds); System.out.println("Retrieving... "); try { HttpResponse convertedResponse = client.execute(httpget); System.out.println("Connection: " + convertedResponse.getHeaders("Connection")[0].getValue().trim());