Roland Weber wrote:
Wait, here is another idea: you could write a startup script that does
the proxy settings lookup, then passes the settings through -D
definitions as system properties, which can be accessed by your
Java application. That's a bit less ugly than calling native code
from within
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software
, e-mail: [EMAIL PROTECTED]
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich
an idea ...
Thx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
_
NOSE applied intelligence ag
ortwin glück
withe the -D option of the JVM.
O.
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich
IndianAtTech wrote:
OK,
Thanks for the Information. I have found FileUpload API from Jakarta
commons project
Why do we have 2 API for Uploading from Same project
1. MultipartFileUpload - (Jakarta-commons)HttpClient - Project
This is a client side interface to upload to a server.
2. FileUpload
to read a file from disk, wrap it in a HTTP request and send
it to a server. On the server you would use FileUpload to receive the
file via HTTP, decode the MIME and save it somewhere on the server.
FileUpload is typically used by webapp frameworks.
Cheers
Ortwin Glück
Gerdes, Tom wrote:
Thanks, for the example!
Question though about it... In the main you use the send class. Is
this supposed to be SendApp, or am I missing something about the code?
Tom,
send is a static method of SendApp. For further questions about the Java
language, please refer to your
Guillaume Cottenceau wrote:
If, for example, the HTTP server sends one a byte once per
second forever, HttpClient will never exit from executeMethod -
if I'm correct.
Yes. It's up to you to decide if that sort of communication makes sense.
HTTP allows it however.
2. Open connections
You can
taste.
Ortwin Glück
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich
I am off to China now. See you in two weeks, guys.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
the SimpleConnectionManager instead and create a new HttpClient object
for every request if you want to be really safe against resource leaks.
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software
add something along the lines of:
host.setParams(new HostParams(client.getParams()));
Ortwin Glück
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse
= new
HostConfiguration(hostConfiguration);
Ortwin Glück
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id
it in the executeMethod call, the problem remains.
Of course.
Why do you want to query the params objects outside HttpClient anyway?
Vikram
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
).
--
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
Vikram Goyal wrote:
Sorry, I must be missing something, because I don't see it that way. The
temporary object that you are talking about, methodConfiguration, is used to
create the MethodDirector object that is used to execute the request. So it
is passed to the execute call.
Okay. I explain in
3.0
may well outweigh this disadvantage.
Ortwin Glück
-Original Message-
From: Ortwin Glück [mailto:[EMAIL PROTECTED]
Watch out, 3.0 is ALPHA! API and contract may still change until the
final version! Good luck with your book. May it become a bestseller
with the XML parser of your choice of course.
Ortwin Glück
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id
Hentzen, Rudy wrote:
Thanks for the swift reply, I have a proxy ip address, is that supported??
Rudy
Sure. Just fill it into the example, where it says myproxyhost and
8080 is the TCP port.
-
To unsubscribe, e-mail: [EMAIL
This is very good news, Eric! Thanks a lot.
Eric Johnson wrote:
And I've finally gotten test results back from the appropriate people here.
In our test lab, between HttpClient 2.0.1 and the nightly, we found a
difference of about 4ms per request. As this was a live-test
environment, with all of
preferences
architecture: To be able to set and override any parameter at any level.
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171
Some of the Cookie tests are currently failing. Can some Cookie expert
have a look into this?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
Juan,
please take a look at our logging guide:
http://jakarta.apache.org/commons/httpclient/logging.html
Try and get a wirelog of the communication. That will help to track down
the problem.
Cheers
Ortwin Glück
Juan Pedro López Sáez wrote:
Hello all.
From time to time I'm getting the following
with separate constructors
for escaped and non-escaped authentication data. It
gives maximum flexibility.
cheers,
Roland
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
.
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
switzerland [fax
this header and send appropriate
data that the client can handle.
On the client side you must not use HttpClients response buffering. So
get the response as a stream from the HttpMethod.
HTH
Ortwin Glück
--
_
NOSE applied
there is none.
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
expect a different exception)
* Are you using a proxy by any chance?
* Are you opening many simultanous connections to the same host?
* Which HTTP Version does the server use?
* Can you provide a wire log or packet log of the communication?
Thanks
Ortwin Glück
Labajo, Dennis wrote:
Hi all
workstation with JDK 1.4.2_02 in
Eclipse 3.0.
The profiler used was:
http://eclipsecolorer.sourceforge.net/index_profiler.html
Feel free to discuss the results attached to this email.
Ortwin Glück
Zulfi Umrani wrote:
Hi,
Just wanted to get the latest information on the performance issues
reported earlier
workstation with JDK 1.4.2_02 in
Eclipse 3.0.
The profiler used was:
http://eclipsecolorer.sourceforge.net/index_profiler.html
Feel free to discuss the results. Results are available for 7 days at:
ftp://ftp.nose.ch/pub/outgoing/httpclient/profiling.zip
Ortwin Glück
Zulfi Umrani wrote:
Hi,
Just wanted to get
Kalnichevski, Oleg wrote:
The best thing you could do to help solve the problem is to capture the HTTP traffic between the browser and the web server using a traffic analyzer.
Have a look at Ethereal:
http://www.ethereal.com/
You can send us a packet log. (List may refuse large attachments and
.
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
switzerland [fax] +41-1-277
to 60 seconds because connections are valuable resources. Then it
depends on the underlying OS how long it takes until the local resources
are freed and the socket object can be collected.
--
_
NOSE applied intelligence ag
ortwin
Giorgi Javrishvili wrote:
Hi,
I need to make some crash-tests on web application, so I found the
example in CVS - MultiThreadedExample.java
fine
But the problem is, that the request lasts much longer then in reality
and method.getResponseBody() returns completely wrong data - 18MB for
600kb
Giorgi Javrishvili wrote:
Man, you are a MAN!!!
Although I was pretty sure about that before, thanks for the
confirmation :-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
on the server.).
If you set XYZ, then XYZ will be sent over the network.
I guess you are using a CGI interface on that server. So you need to
handle the translation yourself. Nothing we can do here I fear.
Ortwin Glück
--
_
NOSE
intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
switzerland [fax] +41-1-277 57 12
Marius Barbulescu wrote:
I see a strange '--' in each part but I don't know if it correct or not.
They are not strange but conform to RFC-2046.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
switzerland [fax] +41-1-277 57 12
it should
be deprecated. I recommend creating a new Object for every request.
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
anything in Sun's Bug database though - only older stuff that matches.
Can you try 1.4.2_04 and check if the bug is still there? 1.4.1 is known
to be buggy...
Ortwin Glück
--
_
NOSE applied intelligence ag
ortwin glück
Kalnichevski, Oleg wrote:
Arturo,
unable to find line starting with 'HTTP' error is reported
or if the content-length or transfer encoding sent by the server is
malformed etc.
--
_
NOSE applied intelligence ag
ortwin glück
+1 from me (although this is not a vote) :-)
Kalnichevski, Oleg wrote:
Folks,
I suggest HttpMethod#recycle method be deprecated in 2.0 and 3.0. This has already
been suggested by Eric a while ago. We should have listened
-
To
will obtain the same connection to the server with the next
request. But this is normally not necessary, as all connections are
interchangable.
I was assuming that
.recycle() was the correct way to maintain a persistent connection.
Don't assume, read the docs.
Thanks.
you're welcome
Ortwin Glück
.
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
switzerland
Socket.
What Platform are you on?
Can you provide a full stack trace please?
Thanks
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41
paul wrote:
Ortwin,
About 1, I have added the changes.
2, I need to add some id, pwd into the authentication logic, does
httpclient api allow for setting this details?
I don't think there is anything special. You can just create a
UsernamePasswordCredentials object and add with the HttpState
) and native
Window (which is kinda not well-supported). Its config file is huge
(squid can do a lot) but quite straight forward.
HTH
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
doesn't look like it.
Pls help. This is urgent as I am currently using it on a production system.
You are welcome. Maybe we should start offering commercial support and
make A LOT of money :-)
--
_
NOSE applied intelligence ag
ortwin
intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer [email] [EMAIL PROTECTED]
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
switzerland
)
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer [email] [EMAIL PROTECTED]
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich
-archive.com does a very good job at filtering out email addresses
* marc.theaimsgroup.com is not bad, but not good enough
Don't know about the rest.
Actually 95% of email I get is uninteresting mailing list junk, SPAM or
virii, about 10-20 MB per day.
Ortwin Glück
=java+HTML+parserhl=debtnG=Search
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer [email] [EMAIL PROTECTED]
hardturmstrasse 171 [pgp
.
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer [email] [EMAIL PROTECTED]
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
Himanshu
HTH
Ortwin Glück
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer [email] [EMAIL PROTECTED]
hardturmstrasse 171 [pgp id
Sam Berlin wrote:
I'm not sure if this problem is still on CVS HEAD, but we're seeing it
against 2.0rc2.
Sam,
would you mind writing a JUnit test case exhibiting the problem against
CVS HEAD? Thanks.
Ortwin Glück
-0
I would like to see issue
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=28728 fixed first.
Odi
Michael Becke wrote:
I propose that we mark the latest code in CVS HEAD as 3.0 alpha 1 and
proceed with a release. Please vote as follows:
Oleg Kalnichevski wrote:
Odi,
The sole purpose of 3.0 alpha1 release to get people look at the API and
give us some feedback on how it is shaping up. Alpha1 release is hardly
expected to be bug free
I really can't see why #28728 should be a release blocker
Oleg
Oleg,
I agree it's not a
).
--
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer [email] [EMAIL PROTECTED]
hardturmstrasse 171
is that your server reports an incorrect Content-Length on
the 401 Response body.
Count yourself: It sais 282 bytes. But the response is 283 bytes. (the
two [0xfffd] sequences are one byte each). Nothing we can do here I fear.
Ortwin Glück
completely impossible as the client
must get out of sync.
Maybe you can also try and modify the 401 error document on the server
side and see if that makes any difference.
--
_
NOSE applied intelligence ag
ortwin glück
Mahamood, Saad (SD) wrote:
org.apache.commons.httpclient.HttpException: Redirect from host
www.bgis.gov.bb to www.barbados.gov.bb is not supported
WARNING: Invalid Redirect URI from: http://www.bgis.gov.bb:80/ to:
http://www.barbados.gov.bb/bgis.htm
My question is, how do I get a handle on
no longer want to conceal my frustration with the way bugzilla is
managed. Frankly I am fed up. I suggest we seriously consider moving to
Jira.
Anything I can help here?
--
_
NOSE applied intelligence ag
ortwin glück
Kalnichevski, Oleg wrote:
As you know, I have a very relaxed oppinion of breaking API
compatibility. I am in favour of this change.
Same here. But I have to admit we might be a minority on this issue
You know, the Swiss like votes, and democracy :-)
Anything I can help here?
Only to help me
+1
Vote: Migrate HttpClient issue tracking from Bugzilla to Jira
[x] +1 I am in favor of the proposal, and will help support it.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to:
log4j.rootCategory=DEBUG, F
Please refer to the Log4J documentation or other resources on the web
for more information.
Ortwin Glück
bagas wrote:
Hi all,
I try to use log4j as httpclient logger but I receive a warning :
log4j:WARN No appenders could be found for logger
Adrian Sutton wrote:
There is absolutely no way that
HttpClient can authenticate with both an NTLM proxy and an NTLM host at
the same time. The protocol just doesn't allow for it,
It would be worth mentioning that in a sentence or two in our
authentication guide.
will end up in a terrible mess.
Ortwin Glück
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer [email] [EMAIL PROTECTED]
hardturmstrasse 171
Oleg Kalnichevski wrote:
Folks,
Any idea what to do with one? First of all, user name and password in
HTTP url is something completely new to me. Any idea what Sung-Gu had in
mind?
Oleg
We need to check what is the allowed character range that is supported
in the username/password part of a
Roland Weber wrote:
Hi Oleg,
see RFC 2396, URI: Generic Syntax, section 3.2.2:
userinfo@host:port
Some URL schemes use the format user:password in the userinfo
field. This practice is NOT RECOMMENDED, because the passing of
authentication information in clear text (such as
you live with this answer?
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Jorrit Kronjee wrote:
I would like
to see the wire of one of the threads, but suppress the other.
Currently this is not possible. A simple workaround with Log4J is:
* set your logging string to include the thread name
* grep the log for the thread name you whish
HTH
Ortwin Glück
bagas wrote:
Dear All,
I am sorry let me rephrase my question.
What I want to ask are
1. How do I check and approve a certificate sent by a web server in
https request? So that I don't get error like :
javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorExce
ption: No trusted
There is o.a.c.h.util.HttpURLConnection. It's ancient and I don't know
if it will work for you, but it's certainly a starting point.
gabor wrote:
i know this has been asked before, but maybe some progress has been
made
i need to use httpclient as a http url-handler in java (registering it
Thorsten Scherler wrote:
I have written a sonar for web services. One part of that application
is the httpClient.
Thorsten, which version of HttpClient are you using?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
for the hassle!
King regards
Thorsten
Never mind.
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Jandalf wrote:
Any objections?
I completely agree.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
where the most CPU time is spent. Using Eclipse Profiler
Plugin, this is a simple task.
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
1.3 option. Please note that this has nothing to do with the
HttpClient library.
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
paul wrote:
Michael,
Both classpaths are the same and both don't have log4j. The jars are
commons-httpclient-2.0.jar commons-logging.jar . But when compiling,
it have log4j before commons-logging.jar, does it matter?
Paul
Are you running the same JDK version on both machines?
Munkby
-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
--
_
NOSE applied intelligence ag
ortwin glück
Geir H. Pettersen wrote:
Hi,
I have been using the commons httpclient successfully since rc1. Great work
guys! This is the best client that I ever have used in java.
Thanks for the flowers, Geir!
The httpclient.wire log is fantastic, but there is something there that
bothers me a bit. Before
Vimarsh Vasavada wrote:
Hello all.
We have following challenge to address :
1. We have 2 JBOSS Servers, say, S1 and S2
2. There will be 1,00,000 distinct-client-threads fired to
S1/TalkToS2.jsp/
3. S1 will have hence virtually 1,00,000-threads attempting to exchange
request/response with S2
Eric Bloch wrote:
Which JVM? I usualliy bench against Sun's; ( JRockit benched worse last
I tried it (it was a year ago or more))
Sun and IBM are usually a little faster than Blackdown. JRockit has
'ThinThreads' which may be a good thing here.
+0
Unfortunately too busy at work to be of great help :-(
Ortwin Glück
Adrian Sutton wrote:
-
Vote: Promote HttpClient to Jakarta level
[ ] +1 I am in favor of the proposal, and will help support it.
[X] +0 I am in favor
).
--
-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
--
_
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software
Martin,
please have a look at this example:
http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/examples/ChunkEncodedPost.java?rev=1.4.2.1only_with_tag=HTTPCLIENT_2_0_BRANCHview=auto
(link may be wrapped)
Kind regards
Ortwin Glück
martin hilpert wrote:
Hello,
i using
martin hilpert wrote:
that means there is no work around WITH PUT ?
The two alternatives ARE the work around!
that are both POST requests?
The same applies to PUT methods as well as PUT basically works the same
as POST.
-
To
martin hilpert wrote:
Hi Ortwin,
Not from within HttpClient directly. You can however simply wrap your
stream and count the bytes read through the respective methods.
how can i wrap it?
any sampel code?
Errm... Ever heard of the java.io.FilterInputStream class? It is
intended to be a base
martin hilpert wrote:
i dont understand how i can monitor the stream.
HttpClient client = new HttpClient();
PutMethod put = new PutMethod(zielurl);
FileInputStream fin =new FileInputStream(C:\test.jpg);
MonitorInputStream min = new MonitorInputStream(fin);
put.setRequestBody(fin);
Robert,
this question is off topic here; we are not Google nor ExpertExchange.
So don't expect too many answers. But I guess even wget has the feature
you are looking for.
Ortwin Glück
Robert Douglass wrote:
I'm looking for a tool that intelligently makes rule-based static copies of
dynamic
it.
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Get HttpClient from here:
http://jakarta.apache.org/commons/httpclient/downloads.html
Make sure you put the jar file on your classpath.
Ortwin Glück
Marcelo Muzilli (IG) wrote:
Howdy people,
I´m a newbie in Servlet programming and I need to develop a code to
run in a Ms IIS Webserver
Dan Christopherson wrote:
I think that owner is intended in the sense of the primary person
responsible for maintaining, not in the sense of the legel owner.
Honestly, there is no such thing in this project. The responsible
persons are the (few) active committers. Those change (slowly) over
legal issues.
Removal of author tags are okay with me. There still are CVS logs of
course and the contributor list on our web site.
Ortwin Glück
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
+0
Ortwin Glück
--
Vote: Promote HttpClient to Jakarta level
[ ] +1 I am in favor of the move, and will help support it.
[x] +0 I am in favor of the move, but am unable to help support it.
[ ] -0 I am not in favor
Kalnichevski, Oleg wrote:
I could also imagine some sort of 'thank you' page listing individuals with their respective contributions.
The real question is what is to be done with all the contributions made up to now.
Yes, let's just put together that 'thank you' page (think of it like the
1 - 100 of 339 matches
Mail list logo