On Tue, 2007-12-18 at 05:07 -0800, vzs64 wrote:
> Ran the test with HttpClient 4.0. Download time is still high 76.3 sec
>
> With HttpClient 3.1
> - Disabling Chunking (by setting HTTP1.0)
> - Download time - 77 secs
> - Headers returned by server
> Date: Tue,
On Tue, 2007-12-18 at 15:25 +0100, Matthijs Bierman wrote:
> Hi Roland,
>
> Appearantly it adds the functionality I need. I had not realized
> parameters (which seem pretty basic, or "core" to me) would not be in
> the HttpCore package.
Matthijs
URL coding would require dependency on Commons Co
vzs64 wrote:
(2) What makes you think this problem has anything to do with HttpClient
in the first place? There is no evidence of what so ever that the
performance degradation is due to the client side.
IE 7.0 takes about 16 secs to download the main page
http://www.reuters.com/artic
On Tue, 2007-12-18 at 21:26 +, jdu jdass wrote:
> Hi,
>
> I'm working with httpclient 4 and i need save cookies to my hard disk. I've
> readed something about ModuleCookie, but I think it's for httpclient 3.
> does exists any way to write cookies to hard disk with httpclient 4??
>
You can
On Fri, 2007-12-21 at 20:43 +, Christiaan Lamprecht wrote:
> Hallo all,
>
> Just a quick question on SSL, MultiThreadedHttpConnectionManager and
> Keep-Alive if anyone can help.
>
>
> I've been experimenting with the MultiThreadedExample on the
> HTTPClient website
> (http://svn.apache.org/
On Thu, 2007-12-27 at 16:00 -0500, Tim Julien wrote:
> All,
>
Hi Tim
> I am in the process of migrating from HttpClient 2.x to HttpClient 4.x.
> (This is for Limewire)
>
> Is there a migration guide anywhere that helps you go from the "old"
> stack to the new one based on HttpCore?
>
There
On Sun, 2008-01-06 at 04:50 -0800, MaGGE wrote:
> Hello,
>
> I've just started using HttpClient for a little util I'm making. I'm letting
> it handle_redirects=true, but I need to process the URL it's been redirected
> to. How can I find the "current URL" after I've executed a request that was
>
On Tue, 2008-01-08 at 18:08 +0300, Fadi M. Maali wrote:
> Hi,
>
> Thanks a lot for your suggestions. It seems that I am now able to pass
> the NTLM authentication, but there still some error.
> More specifically,
> When I use *method.setFollowRedirects(true);* I get HTTP/1.1 407 Proxy
> Authenti
On Tue, 2008-01-08 at 12:02 -0500, Tim Julien wrote:
> Hello,
>
> Any recommendations on closing idle connections?
>
> I see there is:
>
> org.apache.http.conn.ClientConnectionManager.closeIdleConnections(long)
>
> (which is implemented in TSCCM and SCCM), but this method is not called
> anyw
On Wed, 2008-01-09 at 14:46 +0300, Fadi M. Maali wrote:
> Hi,
> I posted below a part of the log. As it is too large I tried to put the
> important parts of it -- wish I am really doing this :) --
> The log corresponds to the case where follow redired is set to true.
> Here is the log:
>
Fadi,
On Thu, 2008-01-10 at 16:46 -0500, Michael Prichard wrote:
> Anyone using HTTPClient to authenticate with exchange using FBA? Any
> hints or examples how?
>
By FBA you mean form-based authentication, I assume? Then Client HTTP
Programming Primer is your friend:
http://wiki.apache.org/jakart
On Thu, 2008-01-10 at 16:06 -0500, Michael Prichard wrote:
> Okfigured this one out. Add this:
>
> // Sets whether authentication should be attempted preemptively.
> client.getParams().setAuthenticationPreemptive( true );
>
>
> And it seems to work perfectly. No
"
>
>
> Does the "WWW-Authenticate: NTLM[\r][\n]" mean that it has NTLM auth?
>
> Thanks.
>
Michael,
What's the point in responding to your questions if you do not read my
responses? The server does seem to support NTLM (not a very big surprise
given the fact i
On Fri, 2008-01-11 at 09:24 -0500, Michael Prichard wrote:
> What does this mean? Does it mean the username and password are
> being sent on an open wire?
>
That is exactly what I was trying to tell you in my previous post.
Oleg
> On Jan 11, 2008, at 9:12 AM, Oleg Kalnic
reemptively you ARE NOT using NTLM. (I guess it's
fine as long as you are aware of this fact and its security
implications)
Oleg
> Thanks!
>
> On Jan 11, 2008, at 7:08 AM, Oleg Kalnichevski wrote:
>
> >
> > On Thu, 2008-01-10 at 16:06 -0500, Michael Prichard wrote
On Fri, 2008-01-11 at 16:10 +, Christiaan Lamprecht wrote:
> Thanks Ronald,
>
> After much reading and looking through the dev mailing list it seems
> that "pipelining" is what I was looking for. Though saying that, it
> does not seem to be very well supported in general. MozillaZine seems
>
ops up a window..very much like you see when
> you set up a .htaccess with BASIC auth. Hmmmany libs out there
> that support NTLM?
>
http://jcifs.samba.org/
Oleg
> On Jan 11, 2008, at 9:27 AM, Oleg Kalnichevski wrote:
>
> >
> > On Fri, 2008-01-11 at 09:24 -05
you some beers :)
>
Beer is always welcome.
Cheers
Oleg
> Thanks!
> Michael
>
> On Jan 11, 2008, at 2:36 PM, Oleg Kalnichevski wrote:
>
> >
> > On Fri, 2008-01-11 at 14:30 -0500, Michael Prichard wrote:
> >> I am doing it like this:
> >>
> >&
On Fri, 2008-01-11 at 13:39 -0500, Michael Prichard wrote:
> Hello Oleg!
>
> This helped a lot! Thanks so much. I do have a question on how
> HTTPClient handles cookies. If you look at this Debug info:
>
> 2008/01/11 13:31:18:443 EST [DEBUG] header - << "Set-Cookie:
> sessionid=bf1658c3-f
I thought that would still keep using HTTPS.
>
> Thanks!
>
And I bet your custom socket factory does not implement
SecureProtocolSocketFactory, does it?
http://hc.apache.org/httpclient-3.x/xref/org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory.html
Oleg
>
On Sun, 2008-01-20 at 15:08 -0800, David Byrne wrote:
> Is there a way in Client 4 to override the default maximum number of
> connections per host? I know that set it per host using MAX_HOST_CONNECTIONS,
> but that can be awkward. I'm looking to change the global setting.
>
Hi David,
There i
On Mon, 2008-01-21 at 14:52 +0300, Fadi M. Maali wrote:
> Hi all,
>
>
>
> I am using a library that in turns uses Apache HttpClient. This library
> gives access to the instance of HttpClient it uses (so I was able to set
> proxy,credential...) but no access to the HttpMethod instance it uses.
The Apache HttpComponents project is pleased to announce the release of
HttpComponents HttpCore 4.0-beta1. This release can be considered a
major milestone, as it marks the end of API instability in HttpCore. As
of this release the API compatibility between minor releases in 4.x
codeline will be m
On Thu, 2008-01-24 at 15:55 -0500, Tim Julien wrote:
> in the new 4.0 stack, is there an analog to
> org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString()?
>
Hi Tim,
This should do the trick
HttpEntity entity = response.getEntity();
if (entity != null) {
String s = EntityUt
On Thu, 2008-01-24 at 17:26 +0100, Cyril Jaquier wrote:
> Hi all,
>
> We are using HttpClient 3.1 on PC and PDA (Windows Mobile). On PDA, we
> get from time to time InterruptedIOException.
>
> java.io.InterruptedIOException: The operation timed out
> at java.net.SocketImpl.receiveStreamIm
On Fri, 2008-01-25 at 14:41 +0100, Cyril Jaquier wrote:
> Hi Oleg,
>
> Thank you for your reply.
>
> > You do not have to close the input stream returned by
> > #getResponseBodyAsStream, as it is not guaranteed to close the
> > underlying socket (in fact #releaseConnection() will be called behin
On Wed, 2008-01-30 at 09:59 -0800, David Byrne wrote:
> A quick follow-up on AbstractVerifier. Is there a reason that the constructor
> isn't set to public? It makes it difficult to extend outside of the package.
>
No reason. I made the constructor public in the SVN trunk.
Oleg
> Thanks,
> D
On Wed, 2008-01-30 at 12:37 -0800, David Byrne wrote:
> Julius,
>
> Thanks for replying. I saw AllowAllHostnameVerifier, but decided to write my
> own so I could report on the errors. However, this only solves part of my
> problem. Even if the verifier passes the cert along, the TrustManager us
On Wed, 2008-01-30 at 18:10 +, Christiaan Lamprecht wrote:
> Hi all,
>
> The question is on how to permanently close a connection in the MTHCM
> connection pool.
>
> I'm using the MultiThreadedHttpConnectionManager and each spawned
> thread makes a couple of "httpClient.executeMethod(method)
On Thu, 2008-01-31 at 12:18 +0100, Support wrote:
> Hi,
>
> strange problem; maybe any of you have had a similar experience: after
> upgrading a server to windows xp sp2, NTLM authentication with
> httpclient 3.0.1 has stopped working.. no changes have been made on the
> client side.. The err
On Mon, 2008-02-04 at 16:47 +, Lorenzo Moretti wrote:
> Hi,
>
> I am currently using both the HttpClient (issuing GET requests) and HttpCore
> (using nio and ssl extensions). I would like to use the latest HttpCore but
> the compatible client is not released yet. However I think that the ne
On Tue, 2008-02-19 at 14:57 -0800, Aaron wrote:
> I'm just getting into using HttpClient, and since v4 seems to be
> coming along well I figured I would start my development with the
> alphas and move to the beta and production when they are ready,
> however I am curious as to when you will releas
On Fri, 2008-02-22 at 16:41 -0500, Stephen More wrote:
> I see in version 4 there will be "HttpCore NIO extensions - event
> driven, non-blocking I/O".
> When this is released can it be used to create the client side of a
> "multipart/x-mixed-replace" message ?
>
There have already been a number
On Sun, 2008-02-24 at 19:00 -0400, Jeff Kerr wrote:
> Hi there, I've had some luck following the example at:
> http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java
>
> to login to a web site then get a page
On Mon, 2008-02-25 at 16:48 +, Andy Wu wrote:
> Hi,
>
> When making a multipart post uploading a file with a filename containing
> non-ascii characters, the filename appears to be incorrect written to
> the http request.
>
> If you look at the code, sendDispositionHeader() essentially send
On Tue, 2008-02-26 at 01:52 +, [EMAIL PROTECTED] wrote:
> For a new project we're going to start using the Apache httpclient. One of
> the things I've had trouble with in prior systems is that long-running
> services get into states where they stop operating correctly. The solution
> was us
braries are geared mostly towards compatibility with web browsers
rather than standards compliance.
If you are not willing to use HttpClient 4.0, the only thing I can think
of is writing a custom request entity for Httpclient 3.x based on Apache
mime4j
Hope this helps
Oleg
> Thanks
&g
The HttpComponents project is pleased to announce the release of
HttpComponents HttpClient 4.0-alpha3. This version brings another round
of API refinements and improvements in functionality. As of this release
HttpClient requires Java 5 compatible runtime environment and takes full
advantage of ge
On Thu, 2008-02-28 at 09:24 +, Eric Cantonna wrote:
> Hello everyone,
>
> This is my first message on the mailing list (but searches in the archives
> have already helped me alot).
> I'm coding some kind of data miner which works rather well now so i'm
> entering the optimisation phase.
>
On Thu, 2008-02-28 at 15:57 +0530, Shailesh Joshi wrote:
> Hi.
>
> We are using HttpClient for NTLM Authentication.
>
> We are facing issues when we - disable the storage of LM hashes of user's
> passwords. (http://support.microsoft.com/kb/299656)
>
>
>
> Following steps are followed in Win
On Thu, 2008-02-28 at 17:19 +0800, micky wrote:
> Dear,
>
>
> I use the HttpClient to login some page, and it will have a cookie according
> to my login.
>
> But when I try to access another page (needed for logon) by the same
> HttpClient, the response is access denied.
>
> Then I print ou
On Wed, 2008-03-05 at 14:03 -0800, John Jamison wrote:
> I was ohh so close - I am attempting to code a simple app that
> performs NTLM proxy authentication against a proxy server that
> supports NTLM and basic authentication.
>
> It took me some time to determine the correct value for the Domain
On Thu, 2008-03-06 at 19:42 +0100, Tov Are Jacobsen wrote:
> Hi,
>
> I'm getting a warning and an Exception stack-trace for every single
> connection I do after the first one.
>
> I consumeContent after each request, so I think my code should be ok
> ... and it works as well, but I wonder
> if
On Fri, 2008-03-07 at 08:12 +0800, [EMAIL PROTECTED] wrote:
> Hi
>
> I'm quite satisfied with newest HttpClient (version is
> httpcomponents-client-4.0-alpha3), but I encounter a difficulty now.
>
> It supports secure connections with a custom SSL context
> (refer to
> http://svn.apa
On Fri, 2008-03-07 at 13:24 +0800, micky wrote:
> Dear,
>
> I finally figure out how to log!!
>
> Please help me find out why these two connections' cookie are different.
>
Because HttpClient does not find the first cookie when executing the
second request. You are not creating a new instance
On Tue, 2008-03-11 at 21:23 +0800, micky wrote:
> Dear,
>
> I solved the cookie issues according to the article mentioned by Roland at
> http://www.nabble.com/forum/ViewPost.jtp?post=15912252&framed=y
>
> After I "GET" a request to the server, the session will be established.
> The following s
On Tue, 2008-03-11 at 11:25 -0700, George Ludwig wrote:
> I am doing some web harvesting, and I'm trying to
> better handle the situation where a hostile website
> has my connection and then sends a few packets of
> garbage data every couple of minutes.
>
> In the loop where I read data off the i
On Tue, 2008-03-11 at 11:38 -0700, sjlucas wrote:
>
>
> Eric Cantonna wrote:
> >
> > Maybe I'm saying something stupid but 2G is awfully close to maxint. Maybe
> > there is a count of bytes read/available somewhere that use an int and
> > should use a long instead.
> >
> > Just an idea that cr
On Tue, 2008-03-11 at 01:49 -0400, [EMAIL PROTECTED] wrote:
> > Hi All,
> >
> > I'm new to HttpClient package. I've noticed that PostMethod
> > class does not have a method that would return OutputStream that I
> > could use to write the serialized object in to. This can be done using
> > java.
ethods/RequestEntity.html
[2]
http://hc.apache.org/httpclient-3.x/xref/org/apache/commons/httpclient/methods/FileRequestEntity.html
> -Valli
>
> -Original Message-----
> From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2008 12:14 PM
> To: HttpClient User
On Thu, 2008-03-13 at 13:10 +0100, Thorsten Scherler wrote:
> Hi all,
>
> I am ATM trying to integrate latest httpclient into Droids. I have some
> "old" code that is based on a prior version of the client.
>
> Some method/class name changes I found myself but some I am not sure how
> to impleme
On Fri, 2008-03-14 at 19:22 -0400, Mark Wyszomierski wrote:
> Hi,
>
> I'm trying to use HttpClient.execute() inside a java applet.
>
> I have it
> working fine in a local application. I got my applet signed via the
> instructions here:
>
> http://forum.java.sun.com/thread.jspa?threadID=1742
On Sat, 2008-03-15 at 10:00 -0700, Wayne Richards wrote:
> This is probably a newbie question, as I have just started working with
> the HTTPClient.
>
> The question is that I know that the following line placed in a browser
> address line will return what I want.
>
> http://api.creativecommon
On Mon, 2008-03-17 at 11:30 -0700, ghanchakkar wrote:
> Please help me.
> I building a bot and trying to upload file along with form fields. when
> compare the request generated by httpclient with that of microsoft browser,
> I notice that httpclient is having following format after the header.
>
On Fri, 2008-03-14 at 11:24 +0800, hjw wrote:
> Hi,dear all:
> I trying to use httpclient to get data from a website once in 1 second
> ,but when the count of getting data is appropriate to above 300 times,the
> programme will show a connection reset exception,I must keep the programme
> to work
On Mon, 2008-03-17 at 21:22 -0400, [EMAIL PROTECTED] wrote:
> Hi,
>
> Is it possible send/receive serialized object using HttpClient?
Yes, it is
> I always
> get java.io.StreamCorruptedException: invalid stream header Exception.
>
> Here is my server side (servlet code)
>
> public void
On Tue, 2008-03-18 at 08:56 +0800, hjw wrote:
> Oleg Kalnichevski ,
>
> I am sending a new HTTP request every second and then get the
> response.butusually connection reset after between 400 and 500
> times,and some can over
> 1000 times.
>
Raymond,
Connection resets can
On Mon, 2008-03-17 at 22:19 -0700, Ravichan wrote:
> Hi .. I followed your steps .
>
> I have downloaded the certificate & and stored as DER in local.
> Then I tried to execute the following command.
>
> keytool -keystore "C:\Program Files\Java\jdk1.6.0\jre\lib\security\cacerts"
> -import -alia
On Tue, 2008-03-18 at 08:29 -0700, Karr, David wrote:
> Has anyone ever implemented a variation on
> StrictSSLProtocolSocketFactory that could log an event if a server cert
> has an expiration date within a certain margin from the current date?
> If someone were to implement this, would this be th
On Wed, 2008-03-19 at 14:31 +0100, Thierry Boileau wrote:
> Hello all,
>
> After some tests, I noticed that the HttpClient hangs in the case the
> server sends a response with informational status and at the same time
> does not support persistent connections. I recognize that this case is
> quit
On Thu, 2008-03-20 at 10:49 +0800, hjw wrote:
> Hi,all:
>I find HttpMethod#abort() will close socket, but I only want to interrupt
> the IO operation which is using the network.
>My case is that some important message must post at once when data I get
> from the same site is match some con
On Thu, 2008-03-20 at 10:31 +0530, Biju P wrote:
> Hi,
>
> I am writing an Applet. The applet must be accessed by users from
> different domains and networks which are controlled by proxies and
> firewalls.
>
> My concerns are,
> i) The applet should be able to send requests to external websit
On Thu, 2008-03-20 at 18:19 +0100, Uwe Kubosch wrote:
> Hi all!
>
> We are using the Commons HttpClient in a multithreaded application, and
> frequently there are more threads trying to use the client than the
> limit set by setMaxConnectionsPerHost.
>
> In this situation we still need to log th
On Thu, 2008-03-20 at 20:38 +0200, Mehmet Kuzu wrote:
> Hİ ,
>
> I have a problem about getting response behind proxy which requires
> authentication using apache httpclient . Proxy server is squid and it
> uses ntlm protocol. I am new to httpclient
> API and i may miss something.
>
> Than
On Thu, 2008-03-20 at 22:05 -0700, Ankur Shah wrote:
> I am using httpclient to connect to a remote server. Now for each primary
> server there's also a backup failover server that i must talk to if
> connection attempts with the primary server fails. To achieve
> this what i'd ideally like to do
/http/examples/client/ClientGZipContentCompression.java
> How reliable is HttpClient 4.0 compared to HttpClient 3.1?
>
>
Depends on your definition of reliability. 4.0 is certainly not API
stable yet.
Oleg
> Uwe
>
>
> On Mon, 2008-03-24 at 20:37 +0100, Oleg Kalnichevski wr
est against the secondary host
(4) when the quarantine time elapses, mark the primary host as
potentially available
(5) repeat
Hope this helps
Oleg
> On Mon, Mar 24, 2008 at 12:47 PM, Oleg Kalnichevski <[EMAIL PROTECTED]>
> wrote:
>
> >
> > On Thu, 2008-03-20
On Mon, 2008-03-24 at 16:44 -0700, ever friend wrote:
> Greeting...
>
> I use httpclient3 to communicate with a web server application.
>
> when I test an error handling, it takes 3 minutes to catch the IOException (I
> manually unplug the internet connection). I assumed it takes couple
On Tue, 2008-03-25 at 22:03 +0800, hjw wrote:
> Hi ,all
>
> When I call method executeMethod() in HttpClient ,usually the methed
> executed and did not call getResponseAsString() ,the length of the response
> is 2K,I think this is the buffer of HttpClient , Is it right? If it is
> right,how can I
> >
> > (1) execute a request against the primary host
> > (2) if an exception is thrown, see whether it can be treated as
> > recoverable
> > (3) if so, mark the primary host as unavailable for a certain period
> > time and retry the request against the seco
On Wed, 2008-03-26 at 08:18 +0800, hjw wrote:
> Hi, Oleg
>
> Use #getResponseAsStream() is not ok,because once #executeMethod(),the
> response will receive automaticly 2K data,what I want likes
> HeadMethod which only receives the header ,but HeadMethod could not get the
> response.
>
Honestly,
On Thu, 2008-03-27 at 11:53 +, gagneet wrote:
> Hi Oleg,
> As I was using Singleton HttpClient object the JSESSIONID persisted for
> every request. I have cleared the persistence by calling clearCookies()
> method on the HttpState object corresponding to the HttpClient object. Should
> I
On Thu, 2008-03-27 at 16:03 -0500, Larry Owen wrote:
> Hello,
> Can anyone help me out with an example using client certificate
> authentication? I'm currently trying to modify
> EasySSLProtocolSocketFactory.java from the contribs in the 3.1 source,
> but It's completely hopeless.
>
Larry,
T
On Sat, 2008-03-29 at 22:27 -0700, Corey Lundon wrote:
> Is my problem that my Login is based on javascript and HttpClient doesn't
> execute javascript like a browser does. So is what I am doing impossible.
Corey
No, it is not impossible. You just need to manually simulate the effect
of a for
On Tue, 2008-04-01 at 13:43 +0400, [EMAIL PROTECTED] wrote:
> Hello!
>
> I'm novice & trying the TrivialApp.java example
> with commons-httpclient-3.1.jar and commons-logging-1.1.1.jar
> and have some problems/questions:
>
> 1) I MUST add commons-codec-1.3.jar into -classpath param to run
> Tri
On Tue, 2008-04-01 at 08:00 -0500, Aaron Shettleroe wrote:
> I'm using a packet sniffer to determine if keepalive is working. It
> seems that the keepalive functionality has only a small window before
> the server will close the connection. I'm using Oracle Application
> Server 10g which is buil
On Tue, 2008-04-01 at 11:01 -0700, Jonathan Hager wrote:
> We are using HttpClient (3.x) on an application server to call a web
> service. This code has been deployed for over a year. Yesterday,
> after the application server had been running for 12 days, we started
> getting connection time out
On Tue, 2008-04-01 at 12:56 -0700, joeweder wrote:
> We are considering using HTTPClient. Is there any performance documents
> comparing to JDK and others? Anything to summarize why it is much better?
>
> Thanks.
We never truly needed to prove HttpClient was better than
HttpUrlConnection, beca
am starting small to try to grasp
using HttpClient correctly.
Oleg Kalnichevski <[EMAIL PROTECTED]> wrote:
On Sat, 2008-03-29 at 22:27 -0700, Corey Lundon wrote:
Is my problem that my Login is based on javascript and HttpClient doesn't execute javascript like a browser does. So is what I am d
Christiaan Lamprecht wrote:
Hi all,
Just a quick question on some "abnormally" large timeouts if anyone can help.
Socket timeout defines a maximum of period inactivity between two
_consecutive_ I/O operations.
Hope this helps
Oleg
I have a couple of clients sending requests to a server
ultiThreadedHttpConnectionManager - Freeing connection,
hostConfig=HostConfiguration[host=https://uat.abc.def.ghi]
[4/2/08 10:51:46:056 IST] 2ff8605c SystemErr R 2008/04/02 10:51:46:056 IST
[DEBUG] IdleConnectionHandler - Adding connection at: 1207113706056
[4/2/08 10:51:46:056 IST] 2ff86
vijay shanker wrote:
Hello friends.
I am very new to this API and I got to make some decisions.
- what should I use in production in my team.(HttpClient4,
HttpClient3 or HttpCore). How they are different with each other.
* HttpClient 3.x is very stable and rela
Sebastiaan van Erk wrote:
Hi,
I'm trying to use preemptive authentication because I have a
non-repeatable (dyanimc) request entity. Currently when posting, this
goes wrong because I get a 401 Unauthorized but it has already sent some
of the data, and when it tries again with the basic authent
Sebastiaan van Erk wrote:
Hi,
I'm trying to set a default proxy in httpclient 4.0-alpha3, and I'm
doing this:
HttpRouteParams.setDefaultProxy(client.getParams(), proxy);
However, this is not working, i.e., it is just using a direct route.
When I do this however on the post:
HttpRouteParams.se
Aaron Shettleroe wrote:
It appears that HttpClient is sending the same request more than once.
Unlikely, unless the RetryHandler is configured to do so.
I tried to code against this.
Here is some code snippets:
private static HttpClient httpClient;
...
final HttpConnectionManagerParams pa
[EMAIL PROTECTED] wrote:
Hello,
I am using httpclient 3.1. I am trying to make a http request that should
timeout when a response is not revceived within 2 minutes.
See definition of the socket timeout
Oleg
The requirement
is also to retry 3 times before throwing back an application except
*does* retry the request
with the authentication header, as it seems to me that it is impossible
if the entity is not repeatable and some data is already sent. An
exception might be better?
Can you post a wire/context log of the session?
Oleg
Regards,
Sebastiaan
Oleg Kalnichevski
you are executing a request with an absolute
request URI. HttpClient will create an instance of HostConfiguration for
you.
Hope this helps
Oleg
> Thanks once again for your help.
>
> Regards,
> Gagneet
>
> - Original Message -
> From: "Oleg Kalnichevski&q
On Wed, 2008-04-02 at 21:55 +0200, Sebastiaan van Erk wrote:
> Hi,
>
> I have a question on the chunked output stream: one of the nice things
> about chunked encoding is that you can send your data in little parts.
> However, flush() on ChunkedOutputStream does not flush the buffer:
>
> /
On Fri, 2008-04-04 at 14:35 +, John Baxter wrote:
> Hi Folks,
> Im hope some one can shed some light on this for me. Im currently doing a
> prototype and decided i would do it with the httpclient4.0 alpha3 version. I
> have or will have a multi-threaded scenario so i have a very simila
On Wed, 2008-04-02 at 18:46 -0500, Ranthydev Rereddy wrote:
> Hello.
>
> I am attempting to use HttpClient to access a jsf page for uploading
> files. The jsf page has a submit button that invokes an action on a bean.
> When I first access the jsf page it returns the file upload page with a
> j
On Thu, 2008-04-03 at 22:22 -0700, Sujith Joseph wrote:
> Hi,
>I am trying to implement a way of throttling http connections to a web
> server from a web service, using httpclient, so that the web server wouldn't
> be overloaded with more than 'x' concurrent connections, from my web
> service.
On Fri, 2008-04-04 at 14:14 -0400, Jeremy Mayhew wrote:
> Hi,
>
> I am using htmlunit+httpclient to test an embedded web application.
> Unfortunately there is a large set of requests for which this embedded
> webserver does not respond with an HTTP header, but instead splats the body
> without a
On Mon, 2008-04-07 at 23:31 +0100, Christiaan Lamprecht wrote:
> Thanks Oleg,
>
> > Socket timeout defines a maximum of period inactivity between two
> > _consecutive_ I/O operations.
>
> I've been looking through the connection manager code trying to find
> out what effect a ConnectionTimeout
On Tue, 2008-04-08 at 13:23 +0800, Shanmugam Karthikeyan NCS wrote:
> Hi All,
>
> I am new to HttpClient. I need to develop a proxy servlet which does an
> internal Http post to a IIS server which in turn generates a cookie which i
> need to use in order to perform Single Sign On to a Vend
On Tue, 2008-04-08 at 13:53 -0700, George Ludwig wrote:
> Crap, my fat fingered typing prematurely sent the
> response.
>
> Execute this at any time before the SSL session:
>
> public static void trustAllCerts() throws Exception {
>ProtocolSocketFactory sf=new
> EasySSLProtocolSocke
On Tue, 2008-04-08 at 18:53 -0400, Tony Thompson wrote:
> I am using HTTPClient 3.1. I have an application that does NTLM
> authentication. I am posting data with the HTTPClient using a stream
> that is not buffered. If the web server requires an NTLM handshake, I
> get an "unbuffered entity en
pe="text/css">[\r][\n]"
> DEBUG (04/09) 13:34:55 [httpclient.wire.content]: << " BODY { font:
> 8pt/12pt verdana }[\r][\n]"
> DEBUG (04/09) 13:34:55 [httpclient.wire.content]: << " H1 { font:
> 13pt/15pt verdana }[\r][\n]"
> DEBUG (04/09) 13:34:
On Thu, 2008-04-10 at 09:38 +1000, Steven Adams wrote:
> Hi,
>
>
>
> I'm using HttpClient 4.0-alpha. I'm trying to post some data to a PHP script
> but I keep getting the error "HTTP/1.1 417 Expectation Failed" back from the
> server (I think).
>
>
>
> Does anyone know what this means? I'
On Thu, 2008-04-10 at 09:59 -0400, Tony Thompson wrote:
> I have debug enabled for org.apache.commons.httpclient so, I am not sure
> why nothing comes out. Is there a specific class I should turn on debug
> for that would give you the info you need?
>
Tony
I will not be able to be of any meani
1 - 100 of 3241 matches
Mail list logo