On Sun, 2010-08-01 at 09:34 -0700, KARR, DAVID (ATTSI) wrote:
-Original Message-
From: Oleg Kalnichevski [mailto:ol...@apache.org]
Sent: Sunday, August 01, 2010 4:47 AM
To: HttpClient User Discussion
Subject: Re: Best strategy to terminate an HttpClient (3.0.1)
connection from
On Mon, 2010-08-02 at 08:48 -0700, KARR, DAVID (ATTSI) wrote:
Using HttpClient 3.0.1.
In examining how to optimize my use of HttpClient in a multithreaded
server, I realized that I'm creating a new HttpClient object for every
connection, and using the default ConnectionManager (and using SSL
On Tue, 2010-08-03 at 15:22 +0200, Work wrote:
Hi there.
I use the httpclient 4.0.1 to access a basic authentication protected
website.
My program performs a MULTIPART request. But the webserver (Microsoft
IIS) returns the error code 400 (Bad Request).
When submitting the same request as
On Tue, 2010-08-03 at 16:51 +0200, Oleg Kalnichevski wrote:
On Tue, 2010-08-03 at 15:22 +0200, Work wrote:
Hi there.
I use the httpclient 4.0.1 to access a basic authentication protected
website.
My program performs a MULTIPART request. But the webserver (Microsoft
IIS) returns
On Wed, 2010-08-04 at 08:28 +0200, Work wrote:
Hey Oleg,
the only one I've found is the browser cookie compatibility. Did you
mean this?
DefaultHttpClient client = new DefaultHttpClient();
client.getParams().setParameter(http.protocol.single-cookie-header,
On Fri, 2010-08-06 at 17:58 -0700, Ken Krugler wrote:
Hi Oleg,
...
I'm trying to figure out how to map this advice onto what I've got in
Bixo:
- I've got a bunch of fetch tasks being executed in threads using
Java's ThreadPoolExecutor.
- Each task uses the same DefaultHttpClient
On Sun, 2010-08-08 at 10:30 +0200, Werner wrote:
Hello HTTPComponent Users,
I'm writing a small test-client to test the android authentication
against a Tomcat 7 Server. It uses Form-based POST authentication and
everything works, but two questions arose:
1. How can I see (from the
On Mon, 2010-08-09 at 19:49 +0200, kra...@darkfluid.com wrote:
Hi,
thanks for the reply. So, since the client does not know if he should
authenticate itself to the server and because the server is under my
control, I transmit a custom header which shows the client that auth is
required.
On Wed, 2010-08-11 at 21:02 +0200, kra...@darkfluid.com wrote:
Hello HttpComponents-Users,
I'm facing a strange issue when using HttpComponents with successive
POST requests against a simple Tomcat servlet (Form-based POST
Authentication is enabled). After a sucessfull authentication, the
On Thu, 2010-08-12 at 07:51 -0700, hbfkf wrote:
Hi everybody,
I am trying to get the URL from within a HttpRequestRetryHandler in
HttpClient 4. Is there a supported way to achieve this?
I assume by URL you mean the request URI
---
DefaultHttpClient httpclient = new DefaultHttpClient();
On Mon, 2010-08-16 at 22:00 +0200, kra...@darkfluid.com wrote:
Hello,
can you please check the client code for correct usage? I'm still unsure
if the issue is a HttpComponents or a Tomcat problem. Any thoughts on it?
HTTP messages generated by HttpClient look reasonable to me. I
On Tue, 2010-08-17 at 12:18 -0700, Mike Boyers wrote:
I've been a user of HttpClient 3 for several years and am now migrating to
using HttpClient 4.
With version 3, I wrapped (extended) the client in order to instrument it
(via JMX). I kept track of the following pieces of information,
On Thu, 2010-08-19 at 22:12 +0200, Karl Wettin wrote:
19 aug 2010 kl. 21.53 skrev Oleg Kalnichevski:
I am not sure I understand the intent of this library. Storage of
versioned response content for the same URI? Standards compliant HTTP
cache?
My use case is that I send a lot
On Tue, 2010-08-24 at 16:06 -0600, Todd Wilson wrote:
Greetings,
I'm transitioning from HttpClient 3 to 4. I believe I've done all of
the necessary translations except for downloading a partial response.
For example, there are cases where the server response may be very
large, but I'm
On Fri, 2010-08-27 at 11:36 -0700, jhinckel wrote:
I updated HttpClient 3.0 to 4.1 and I have a problem with https connections
that take 5 seconds between synchronize and handshake message.
This delay does not occur with old version.
I'm using preemptive authentication and accepting all
On Fri, 2010-08-27 at 11:41 -0700, Mike Boyers wrote:
My comments inlined below.
--- On Tue, 8/17/10, Oleg Kalnichevski ol...@apache.org wrote:
From: Oleg Kalnichevski ol...@apache.org
Subject: Re: Instrumenting HttpClient 4
To: HttpClient User Discussion httpclient-users@hc.apache.org
On Mon, 2010-08-30 at 14:33 -0700, jhinckel wrote:
What I discovered were different in the logs several messages like:
trigger seeding of SecureRandom
done seeding SecureRandom
keystore is:
KeyStore type is: jks
KeyStore provider is:
init keystore
init keymanager of type SunX509
The Apache HttpComponents project is pleased to announce the release of
HttpComponents HttpCore 4.1-beta2. This version fixes a number of
non-critical bugs found since the previous release. The 4.1 code line is
expected to supersede 4.0 as recommended for use in production with the
next release.
On Tue, 2010-08-31 at 16:55 -0700, Yongxing Wang wrote:
Oleg,
We are using HTTP NIO in our production env and we recently found out that we
can not download any file with size greater than Integer.MAX_VALUE. The
amount
of data we can download is always actual_file_size -
On Wed, 2010-09-01 at 14:34 +, Jean-Baptiste Choteau wrote:
Hey,
I have read the various topics about this subjects and I know that there
already
have been such topics for the
Release 3 and 4.0. I would know if there is any improvement in the 4.1
release.
I want to connect to
On Thu, 2010-09-02 at 00:09 -0700, Jean-Baptiste Choteau wrote:
Oleg,
Thank you for your answer. As the topic is from 2007 I wanted to be sure that
no
change has occured.
Do you know any way to get in touch with people having developped it for
themselves?
Best regards
M.CHOTEAU
On Tue, 2010-09-07 at 20:21 -0400, Chad La Joie wrote:
I have a suggestion and a question.
First, I'd like to suggest creating an HTTP header names constant file
similar to HttpStatus. A few HTTP defined header names are defined on
the HTTP object but not the majority of them. While
On Wed, 2010-09-08 at 12:03 +0200, MASTRELLA STEFANO wrote:
I'd like to goggle around via the httpclient library through a proxy
with a NTLM authentication scheme, so I've just copied the example in
...
The configuration of the HttpClient is as in the following
public class HttpTest
{
On Thu, 2010-09-09 at 19:38 +, Gary Gregory wrote:
The page http://hc.apache.org/downloads.cgi has the text for 4.0.1 but the
links point to 4.0.2
The site got seriously messed up. My bad.
It is really getting difficult for me to juggle with all my numerous
responsibilities
Oleg
On Thu, 2010-09-09 at 19:53 +, Gary Gregory wrote:
Hi All:
In the zip with deps I see lib/httpcore-4.0.1.jar. Is that right or should it
be 4.0.2?
This is not a mistake. HttpCore and HttpClient have different release
cycles. The latest HttpCore stable is 4.0.1. 4.1 is coming soon.
On Thu, 2010-09-09 at 20:13 +, Gary Gregory wrote:
Oleg, thank you for the clarification. For the next release, perhaps a note
mentioning this in the docs?
Gary
Could you please raise a JIRA for the issue? I can no longer keep track
of things without help. I have too much on my plate
On Thu, 2010-09-09 at 14:35 +, Sujit Basu wrote:
Hi,
I'm developing a HTTP Client application with some key requirements, which
are as following (I'm also putting some inline notes/questions):
1. HTTPS with mutual SSL Authentication using certificates.Note: I have used
Commons
On Tue, 2010-09-14 at 19:08 +0300, George Georgieff wrote:
I have this code:
-
DefaultHttpClient httpclient = new DefaultHttpClient();
// I want stream body, not file body
InputStream fullStream = new BufferedInputStream(new FileInputStream(...),
8192);
HttpPost
On Tue, 2010-09-14 at 19:56 +0100, sebb wrote:
On 14 September 2010 18:09, Oliver Siegmar oli...@siegmar.org wrote:
Hello,
I'd like to access content that is provided by https but my code always
fails
with an SSLException. I tried it with a very simple example:
import
On Tue, 2010-09-14 at 20:49 +0100, Richard Gundersen wrote:
I think this is my problem too (see my email earlier in the day). I'm on Java
1.6_21, 64bit Windows 7, running in Jboss 4.2 if it's any help.
I won't get chance to look at this until Monday now but if there is an
emergency release
On Thu, 2010-09-16 at 04:03 -0700, CodingForever wrote:
Hi I am new about apache and on HttpClient - user forum.
I have a problem.
I am trying to offline http decoding. It means that I decode the already
captured http packets. But I faced a problem that CHUNK problem. For
accessing real
HttpClient 4.0.3 is an emergency release fixing a critical regression in
the SSL connection management code. HttpClient 4.0.2 release included an
improved support for multihome hosts, which unfortunately had a bug
causing the default SSL hostname verification logic to fail. An attempt
to establish
On Sun, 2010-09-19 at 11:47 +0530, arpita k wrote:
Hi,
I am using HttpClient 4.0 for client and server communication.
Here is my code to open a connection:
HttpParams params = *new* BasicHttpParams();
// Increase max total connection to 200
On Tue, 2010-09-21 at 16:58 +0200, li...@joerg-buchberger.de wrote:
Hi all.
From httpclient documentation and mailing list I read, that ...
a) one should use ThreadSafeClientConnManager, if more than one thread is
using
the HttpClient
b) a SingleClientConnManager ought to be used
On Tue, 2010-09-21 at 21:27 +0100, sebb wrote:
On 21 September 2010 20:03, nitin singh xmlpr...@gmail.com wrote:
Thanks Sebb for replying to my question. I had already gone though that
example. Can you be a little more specific?
- As I said I need to write data from a buffer when it gets
On Wed, 2010-09-22 at 18:05 +0300, George Georgieff wrote:
For that matter is it a good practice to set a HttpClient with a
ThreadSafeClientConnManager in the ServletContext of a webapp, and to reuse
the HttpClient ?
Absolutely. One should also use a ServletContextListener to shut down
On Wed, 2010-09-29 at 18:43 +0100, Arménio Pinto wrote:
Hi there,
I'm trying to use HttpClient on http://www.flybe.com with the objective of
downloading the main page HTML content and the site cookies. The code is as
follows:
final DefaultHttpClient client=new DefaultHttpClient();
On Thu, 2010-09-30 at 09:26 +0100, Arménio Pinto wrote:
Hi Oleg, thank you very much for your help.
I already had org.apache.http enabled for debug, but there isn't
anything obvious in the logs. The only cookies related-entry I can see
is:
2010-09-30 09:18:23,969 DEBUG [main]
On Wed, 2010-10-06 at 23:21 +0200, Antonio Sánchez wrote:
Hi.
I'm developing a Swing client application for requesting a web
application (Struts2).
This client application is required to deal with concurrent requests
(SwingWorkers) that will finally be performed using HttpClient4.
On Thu, 2010-10-07 at 17:31 +0900, Andrey V. Panov wrote:
Hi all.
I want use single connection (for auth case) for all my requests.
By default it's should keep connection alive but after my POST request it's
close it! (cheking with nestat).
HttpClient v4.0.3. Server is IIS (not sure about
On Wed, 2010-10-13 at 00:09 -0400, Ryan Smith wrote:
Ok, ill try to answer my own question. Yes, its against the the RFCs,
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
Note: RFC 1945 and RFC 2068 specify that the client is not allowed
to change the method on the
On Thu, 2010-10-14 at 09:48 -0500, Cody Burleson wrote:
Team,
I am brand new to HttpClient and I am trying to authenticate with a site
through Basic HTTP Authentication. I am having no luck and am finding it
difficult to refer to the code examples because they seem to be primarily
for
On Thu, 2010-10-14 at 09:20 -0700, Antonio Sanchez wrote:
Thanks Oleg.
olegk wrote:
You should be re-using the same instance of HttpClient
Do I need to synchronize access to the HttpClient instance?
No, you do not. DefaultHttpClient is fully thread-safe *as long as* all
On Fri, 2010-10-15 at 12:11 -0400, Nation, Carey wrote:
I'm sure this is obvious and I'm sure I just didn't ask google the
proper question, but I'm stumped.
I need to post a big blob of xml to a servlet. The xml needs to be in
the request body. In 3.x you said something like
My bad. I thought you were referring to the socket timout setting. You will
have to upgrade to HttpClient 4.0 to be able to set connect timout on the HTTP
request level.
Oleg
asolodin asolo...@comcast.net wrote:
olegk wrote:
Andrei,
Socket timeout can be set either on the HTTP agent
On Wed, 2010-10-20 at 23:45 -0700, AT Pune wrote:
Hi,
I upload a large file (4GB in chunks) in a single http connection and by
opening the output stream just once. To do this I've used HttpClient 3.1 API
and have done this.
1. Extended the RequestEntity to create a chunked entity class
On Thu, 2010-10-21 at 17:04 -0400, Greg Lindholm wrote:
A service we use has suggested to us that if a HTTP request to them
fails (for whatever reason) that we should retry the request using one
of the other IP addresses that DNS returns.
I traced through HttpClient 3.0 (I haven't upgraded
On Sat, 2010-10-23 at 01:24 +0330, John Smith wrote:
Hi
I'm receiving an utf-8 encoded redirect url's from a website, but it
seems that httpclient (?) treat them as US-ASCII (?) so it can not
handle them correctly.
URLs are not meant to have any characters other than US-ASCII.
On Mon, 2010-10-25 at 01:00 +0200, dg...@gmx.at wrote:
Hi All,
I solved the problem myself. I thought the request line would be part of the
http-headers. So I didn't find the line in the headers.
Shame on me, I would had to read the HttpGet and HttpResponse api.
The following class prints
On Tue, 2010-10-26 at 04:57 -0700, Andre Brito wrote:
Hey guys.
We have 2 peace of software that imports a few data from sites. I was using
HttpClient 3.1 and it was great! But then, one of the sites started to
complain (maybe because of our access, I don't know) and was throwing
exceptions
On Wed, 2010-10-27 at 17:00 +0800, Micky Lee wrote:
Hi,
I want an asynchronous http client, and I found the svn repository:
http://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/
I want a notify when the request has response with a callback function, but
the AsyncHttpClient
On Wed, 2010-10-27 at 05:11 -0700, Andre Brito wrote:
Oleg,
It worked! But why (now it's personal, hehe, I don't like to see that it's
working and not knowing the reason)?
Not all web servers out there implement HTTP/1.1 fully (or correctly)
I'm tyring to access HttpClient's
website, but
On Wed, 2010-10-27 at 19:53 -0500, Mills, Nick wrote:
I don't want to authenticate with the proxy using NTLM v2 (because it's not
supported).
So is there a way to force basic authentication in 4.0.2?
I'm stuck with the 4.0.2 version because I'm using WebDriver 2.0a6.
For older 3.x
On Thu, 2010-10-28 at 14:06 +0200, Andreas Ernst wrote:
Hi,
i try to post datas to a page.
Wireshark say Firefox uses this value: dnn$dnnSEARCH$txtSearch.
With httpclient it is: dnn%24dnnSEARCH%24txtSearch.
I have no glue if this is the issue, that i did not get the expected
result,
On Thu, 2010-10-28 at 16:27 +0200, Gerhard Sinne wrote:
Hi all,
I have HTTP client implementing a self- signed- accpetance strategy using
the TrustSelfSignedStrategy() of the apache HTTP Client 4.1Alpha2.
- First question : Do I have to set the truststore system properties
although I
Gerhard Sinne gsi...@orga-systems.com wrote:
Thanks Oleg for the quick reply,
- Second, could somebody shed a light on this code which still
fails
with
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
You have to differentiate self-signed certificates from those
,
Nick
Nick
I think HC 3.x should behave exactly the same way if the NTLM were
disabled. If the target server sends two challenges NTLM and BASIC back
and NTLM is not supported or disabled, BASIC will be used as a fall
back.
Hope this helps
Oleg
-Original Message-
From: Oleg
On Fri, 2010-10-29 at 09:55 +0200, Gerhard Sinne wrote:
Hi Oleg,
thanks for taking the time.
Gerhard
There's nothing wrong with the code. Your expectations as to what
TrustCelfSignedStrategy is
meant to do do seem wrong, though.
Sorry, cannot follow. What do you mean ?
On Sun, 2010-10-31 at 16:29 -0400, Cody Burleson wrote:
Hey friends, I'm stuck. As if you have nothing better to do, can any fine
guru tell me why in the heck my attempt to list cookies is always printing
None?
You can see whether or not the target server sends any cookies back and
whether
On Wed, 2010-11-03 at 12:31 -0400, Hemant Tiwari wrote:
Hi,
I am using HttpClient for connecting to streaming server. At client side I
am checking for server response and in case I get an unexpected response I
am trying to close connection.
My question is
Is there any way for me to use
On Mon, 2010-11-08 at 16:14 +0100, Darius Bohni wrote:
Hi,
I try to read an http stream (ex. Shoutcast) with a virtual address (with
and without using an http proxy). How can I do this with the new HttpClient
4?
It hangs on execute() when using a GET request. I've read that execute()
waits
On Sat, 2010-11-13 at 11:30 +0100, Javier Ramos wrote:
Hello,
I am currently using HttpClient 3.1 inside a servlet that needs to retrieve
XML content from several webs, which must be a very common need.
I am thinking of moving my code to HttpCore or HttpClient 4.
Before I make the
On Mon, 2010-11-15 at 13:21 +0100, Javier Ramos wrote:
Thanks for your feedback, Oleg
We are doing with just a servlet container (Tomcat)
My apologies, Javier. I mis-interpreted the subject of your message and
assumed you were using a full-blown J2EE application server.
I guess that to
On Thu, 2010-11-18 at 07:12 -0800, David Smiley @MITRE.org wrote:
In the example ClientExecuteSOCKS.java you showed me:
1. Why isn't the SOCKS support built into httpclient instead of requiring
users to do it themselves? HttpClient is already invovled with Socket level
TCP/IP stuff, with all
On Thu, 2010-11-18 at 09:17 -0800, David Smiley @MITRE.org wrote:
olegk wrote:
On Thu, 2010-11-18 at 07:12 -0800, David Smiley @MITRE.org wrote:
In the example ClientExecuteSOCKS.java you showed me:
1. Why isn't the SOCKS support built into httpclient instead of requiring
users to do
The Apache HttpComponents project is pleased to announce the release of
HttpComponents HttpCore 4.1.
This is the first stable (GA) release of HttpCore 4.1. This release
provides a compatibility mode with JREs that have a naive (broken)
implementation of SelectionKey API and also improves
On Fri, 2010-11-19 at 18:22 +, Gary Gregory wrote:
Hi Oleg:
Is there a schedule for when this will trickle into a HttpClient release?
Thank you,
Gary
Hi Gary
HttpClient 4.1-beta1 packages will become available tomorrow. HttpClient
4.1-beta1 depends on HttpCore 4.1 (GA). If no
On Fri, 2010-11-19 at 19:48 -0800, Michael Poindexter wrote:
I'm seeing a problem with AsyncNHttpClientHandler in v4.1 of HttpCore. When
I submit a number of requests simultaneously (anything 12 seems to trigger
it for me), I get this exception:
Caused by: java.lang.NullPointerException
HttpClient 4.1-beta1 finalizes the 4.1 API and brings a number of major
improvements to the HTTP
caching module. This release also adds full support for NTLMv1, NTLMv2, and
NTLM2 Session
authentication. The NTLM protocol code was kindly contributed by the Lucene
Connector Framework
project.
On Wed, 2010-11-24 at 14:59 +0200, John Smith wrote:
Hello everyone!
I describe my situation.
I download some content from some sites by HttpClient.
I send GET request and get HttpEntity to byte array:
bEntity = EntityUtils.toByteArray(entity);
then I save bEntity in file.
I can see
On Thu, 2010-11-25 at 06:37 +0200, John Smith wrote:
On 24 of November 2010 23:09:30 Oleg Kalnichevski wrote:
On Wed, 2010-11-24 at 14:59 +0200, John Smith wrote:
Do you want just the final total or you intermediate data for a process
indicator of some kind?
Oleg
On Tue, 2010-11-30 at 11:22 +0100, Håkon Sagehaug wrote:
Hi all,
I've got a service that users can use to download files from a http. I want
to add functionality so that a user can supply many urls and the service
starts to download the files. So I wondered if the way described here[1] is
On Wed, 2010-12-01 at 10:49 +0200, Filiz Gökçe wrote:
Hi,
I have a service that gives xml data. But it didn't connect, I reseach all
of documents on internet and you site, I develop my code on you site exampl=
e
I give the example of my code :
protected InputStream getInputStream() {
On Wed, 2010-12-01 at 12:55 +0100, Roman Kennke wrote:
Hi,
I've got a service that users can use to download files from a http. I want
to add functionality so that a user can supply many urls and the service
starts to download the files. So I wondered if the way described here[1] is
the
On Wed, 2010-12-01 at 17:49 +0100, Joan Balaguero wrote:
Hello,
The entity.consumeContent() method is deprecated in 4.0.3. What must we use
instead of it?
Currently were using this method to be sure that the content is consumed
and connection is released. And its working ok.
On Wed, 2010-12-01 at 10:50 -0800, yoosh wrote:
Hi,
I've searched the forum:
http://old.nabble.com/Opening-streaming-URL-td11290919.html#a11344350
http://old.nabble.com/Opening-streaming-URL-td11290919.html#a11344350
based on the above, I still don't understand fully that:
On Fri, 2010-12-03 at 12:29 +0100, Roman Kennke wrote:
Hi Oleg,
HttpConnection.shutdown() seem to be perfect for this. Thanks.
However, one question remains. Is there a way to distinguish between the
IOException thrown be shutdown and other (i.e. protocol/network related)
IOException?
On Fri, 2010-12-03 at 13:08 +0100, Roman Kennke wrote:
However, one question remains. Is there a way to distinguish between the
IOException thrown be shutdown and other (i.e. protocol/network related)
IOException? As far as I can see, there is no special subclass for
shutdown related
On Mon, 2010-12-06 at 12:41 -0600, Douglas Ferguson wrote:
This just seems like a hack.. Is there no way to make HttpClient clean up its
connections.
D/
You need to evict connections from the pool that have been idle for too
long.
On Thu, 2010-12-09 at 23:57 -0800, Karl Heinz Marbaise wrote:
Hi to all,
I have the following http://imagebin.ca/view/vt_QBTQ6.html form which i
like to post data to...and i have the following code:
DefaultHttpClient httpClient = new DefaultHttpClient();
String
On Tue, 2010-12-14 at 09:19 +0100, Gerhard Sinne wrote:
Gerd
I find it somewhat difficult to believe that the trust manager never
gets called. You might want to turn on the SSL debugging to find out
what certificates are trusted.
On Tue, 2010-12-14 at 11:51 +0100, Gerhard Sinne wrote:
main, WRITE: TLSv1 Alert, length = 2
Gerd
This looks like a SSL protocol compatibility issue. Try using a
different version of the protocol (SSLv1 or TLSv1) and see if that makes
any difference.
I inspected the CURL
On Tue, 2010-12-14 at 12:32 +0100, H. Brunsting wrote:
Hi,
I'm trying to get a multi-threaded implementation of HttpClient.
Basically i have a number of threads that call getHttpData()
concurrently. It seems to work, but upon starting my threads I get a
bunch of exceptions:
Dec 14, 2010
On Wed, 2010-12-15 at 17:44 +0100, Javier Ramos wrote:
Thanks, Oleg
I understand that reusing an HttpClient instance is a recommended practice,
¿right?
If we push this reuse strategy to the limit then it should be best to have
just one HttpClient with a ThreadSafeClientConnManager in a
On Wed, 2010-12-15 at 18:44 +0100, daniel.stu...@attensity.com wrote:
Hi again,
I just donwloaded HttpCore 4.1 and created a small test sample to
reproduce the problem described in my former mail.
When using the InputStream provided by HttpResponse
getEntity().getContent() I get, as
On Fri, 2010-12-17 at 14:45 +0100, Gerhard Sinne wrote:
Hi Oleg,
may I raise this issue again ?
Gerd
This looks like a SSL protocol compatibility issue. Try using a
different version of the protocol (SSLv1 or TLSv1) and see if that
makes
any difference.
I have now
On Tue, 2010-12-28 at 16:33 +0800, 世涛 wrote:
Hi all:
I'm considering to update HttpClient3.1 to HttpClient4.0.3 in my new project,
and I must be sure that system speed will not be slower.
So I did some tests, but I found that Httpclient4's performance is not as
good as HttpClient3.1.
...
Thanks very much for your quick reply!
I just did the benchmark test from your email, in the benchmark, the
number of requests was 1, but the result seems not satisfying.
The result data is below:
[zhangshi...@inc-130-120 http-benchmark]$ ./httpclient4.sh
On Tue, 2011-01-04 at 17:30 +0200, Ittay Dror wrote:
It turns out this is because my warmupInput file was empty. The server
responded with 100 (continue), but because the file was empty nothing
was written to the output stream, so after a while there was a timeout.
IMHO, this is a bug.
Ittay Dror ittay.d...@gmail.com wrote:
Oleg Kalnichevski wrote:
On Tue, 2011-01-04 at 17:30 +0200, Ittay Dror wrote:
It turns out this is because my warmupInput file was empty. The
server
responded with 100 (continue), but because the file was empty
nothing
was written to the output stream
Ittay Dror ittay.d...@gmail.com wrote:
Oleg Kalnichevski wrote:
Ittay Drorittay.d...@gmail.com wrote:
Oleg Kalnichevski wrote:
On Tue, 2011-01-04 at 17:30 +0200, Ittay Dror wrote:
It turns out this is because my warmupInput file was empty. The
server
responded with 100 (continue
In which case HttpClent would use chunk coding to signal the end of the
message body. That means there would be at least a closing tag.
I don't know HttpClient like you, but once I put some content in the
file everything works.
Please produce wire log of the HTTP session that
On Tue, 2011-01-04 at 19:32 +0100, Oleg Kalnichevski wrote:
In which case HttpClent would use chunk coding to signal the end of the
message body. That means there would be at least a closing tag.
I don't know HttpClient like you, but once I put some content in the
file everything
On Wed, 2011-01-05 at 13:33 +0100, Stelios Togias wrote:
Hi,
Not sure how to phrase this...
1) Is creating a new instance of HttpClient a costly operation?
No, it is not, but creating a new instance of a connection manager is.
Meaning is
it ok to create a new instance
each time I need
On Wed, 2011-01-05 at 15:54 +0100, Claudio Martella wrote:
Done.
It basically does a simple Basic authentication putting user and
password in the request:
http://user:passw...@ip/
This doesn't happen with httpclient which tries a basic authentication
through the Authenticate header
On Wed, 2011-01-05 at 16:54 +0100, Stelios Togias wrote:
Hi Oleg thanks for the answers there are helpful :)
how can I set the proxy per request?
ConnRoutePName#DEFAULT_PROXY parameter is your friend.
Oleg
-
To
On Fri, 2011-01-07 at 11:51 +0100, Stelios Togias wrote:
so I would do:
httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
and when I don't want to use it
httpClient.getParams().removeParameter(ConnRoutePNames.DEFAULT_PROXY);
thanks
stelios
On Fri, 2011-01-07 at 14:02 +0100, Stelios Togias wrote:
ok that sets the proxy, now when I want to remove it I do
httpClient.getParams().removeParameter(ConnRoutePNames.DEFAULT_PROXY);
or I set the ConnRoutePNames some other value...
You do not _need_ to remove anything as this parameter
Folks
HttpClient 4.1 GA and HttpAsyncHttpClient 4.0-alpha1 releases are
expected next week provided no release blockers are reported in the next
few days.
Please do try to find time to test the latest build of HttpClient for
compatibility with your applications and report issues if found.
You
On Mon, 2011-01-10 at 18:00 -0500, David Motes wrote:
I seem to be missing something. I am trying to use this sample code
from the doc to access a proxy without
configuring the proxy parms.
One can also instruct HttpClient to use standard JRE proxy selector to
obtain proxy information:
701 - 800 of 2518 matches
Mail list logo