Re: Read Throttling for GET (Limit Bandwidth)

2008-04-02 Thread sebb
I wrote some add-ons for JMeter which do this, see: http://svn.apache.org/repos/asf/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/SlowHttpClientSocketFactory.java and the Slow* files in:

Re: Re: How to get response from a URL with an intermediate stage?

2008-05-12 Thread sebb
On 12/05/2008, bin chen [EMAIL PROTECTED] wrote: Dear Oleg: I've read the primer a few times trying to find the answer. However, I have not found any clue on how to deal with the problem. From the page source, it was clear that the validation was triggered by the form's submission.

Re: java.net.ConnectException: Connection refused: connect

2008-05-12 Thread sebb
On 12/05/2008, ghan_java [EMAIL PROTECTED] wrote: i missed setting the proxy , now , if i run my java class , it's work fine . but when i try to debug , it's throw a following exception Unhandled exception Type=Segmentation error vmState=0x J9Generic_Signal_Number=0004

Re: detecting real redirects with GetMethod

2008-05-12 Thread sebb
method.getURI() On 12/05/2008, Janos Mucsi [EMAIL PROTECTED] wrote: Hi I am following redirects like this HttpClient client = new HttpClient(); GetMethod method = new GetMethod(http://;; method.setFollowRedirects(true); client.executeMethod(method); I would like to compare the

Re: detecting redirects with GetMethod

2008-05-12 Thread sebb
17,000 validations so I care about speed too. Then I suggest you try some tests to measure speed and resource usage. Thanks. sebb wrote: method.getURI() On 12/05/2008, Janos Mucsi [EMAIL PROTECTED] wrote: Hi I am following redirects like this HttpClient client = new

Re: HttpClient returns different response compared to browser

2008-05-20 Thread sebb
On 20/05/2008, Kwik, Micky [EMAIL PROTECTED] wrote: Hi, I wrote a simple client to fetch documents from some websites. But I found that the HttpClient often gets a different response compared to the browser even if the HTTP status code is 200. In what way is the response different? For

Re: [POLL] Logging toolkit for HttpClient 4.x

2008-06-02 Thread sebb
On 02/06/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: Folks, We are currently considering whether we should continue using commons-logging or migrate to SLF4J or java.util.logging. Please let us what your preference is. We are going to make the final decision based on the results of

Re: Problem POSTing soap Request as String or Stream and not as file

2008-06-04 Thread sebb
On 04/06/2008, Nishant Gupta [EMAIL PROTECTED] wrote: hi, I am Facing issues regarding posting the soap xml as a string (it was working fine till i was using file) in setting post.requestEntity(); PostMethod post = new PostMethod(strURL); // Get target URL //

Re: HttpClient not sending cookie?

2008-06-09 Thread sebb
On 10/06/2008, Eduardo J. Ortega U. [EMAIL PROTECTED] wrote: Hi, Oleg: Try using the browser compatibility mode. I am not sure I understand what you mean. Could you please point me to some docs about this? Oleg was referring to the Cookie mode:

Re: Support for checksum with file download

2008-06-13 Thread sebb
On 13/06/2008, Stephen J. Butler [EMAIL PROTECTED] wrote: On Fri, Jun 13, 2008 at 11:29 AM, Sabarivasan Viswanathan [EMAIL PROTECTED] wrote: I will be doing a simple POST request to download a large file (of the order of a few tens of megabytes). In order to ensure that the file

Re: Support for checksum with file download

2008-06-13 Thread sebb
On 13/06/2008, Stephen J. Butler [EMAIL PROTECTED] wrote: On Fri, Jun 13, 2008 at 12:14 PM, sebb [EMAIL PROTECTED] wrote: On 13/06/2008, Stephen J. Butler [EMAIL PROTECTED] wrote: On Fri, Jun 13, 2008 at 11:29 AM, Sabarivasan Viswanathan [EMAIL PROTECTED] wrote: I will be doing

Re: DefaultHttpClientConnection.isOpen();

2008-06-20 Thread sebb
On 20/06/2008, Quintin Beukes [EMAIL PROTECTED] wrote: Hey, Yes. I am however synchronizing. I basically made my own connection manager. Then using synchronization to ensure that only one thread gets a reference to a connection. When it does it calls the my connection objec'ts

Re: How to make sure I use the same connection?

2008-07-22 Thread sebb
On 22/07/2008, Phillip Gussow [EMAIL PROTECTED] wrote: Hi Oleg, Thanks for the answer. Unfortunately I'm bound to using 3.x :( In which case, you may find it easier to use the SimpleHttpConnectionManager and manage the connections yourself. This is the approach taken by JMeter, because each

Unsubscribing (Was: Reading html-code from many different websites)

2008-08-12 Thread sebb
On 02/08/2008, Rudy Rusli [EMAIL PROTECTED] wrote: Hello, I'm trying to unsubscribe to this mailing list: In future when posting to a mailing list, please start a new thread for a new subject ... I sent email to : [EMAIL PROTECTED] a couple of times but always fail. [Hotmail seems to

Re: JDK vs HttpClient

2008-08-14 Thread sebb
On 14/08/2008, Jignesh Malkan [EMAIL PROTECTED] wrote: Hi, I am trying to find the reasons to use HttpClient over JDK if app is running in JDK 1.5 or higher. Keep in mind most production environments allow users to access URL only on port 80/443. Most proxies will not allow going

Re: HttpClient 4.1 beta : JDK 1.3 : SocketFactory unsupported

2008-09-25 Thread sebb
On 25/09/2008, all-e [EMAIL PROTECTED] wrote: I am using IBM JDK 1.3.1 and am getting a runtime error org/apache/http/conn/scheme/SocketFactory (Unsupported major.minor version 49.0).javax.servlet.ServletException: org/apache/http/conn/scheme/SocketFactory (Unsupported major.minor version

Fwd: CFP open for ApacheCon Europe 2009

2008-10-02 Thread sebb
-- Forwarded message -- From: Noirin Shirley [EMAIL PROTECTED] Date: 2 Oct 2008 09:20 Subject: CFP open for ApacheCon Europe 2009 To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] If you only have thirty seconds: The Call for Papers for ApacheCon Europe 2009, to be

Re: ntlm authentication

2008-10-04 Thread sebb
On 04/10/2008, Leo Wraith [EMAIL PROTECTED] wrote: I have a Web application online running on a Linux server. I need to access files located on a private network running Windows server. The client has given me a public IP which uses port 8080 that I can use to access the reources that I

Re: How to handle two forms on one page with apache httpclient

2008-10-15 Thread sebb
On 15/10/2008, boy456 [EMAIL PROTECTED] wrote: Dear friends I would like to ask about using Apache httpclient for retrieving knowledge from some online databases through forms. My problem is that there is one webpage that contains two forms on one page and I want to send only the

Re: HttpClient and cookies

2008-10-21 Thread sebb
On 20/10/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Mon, 2008-10-20 at 09:42 -0700, Joseph Mocker wrote: It sounds like your webserver, or whatever is generating processing the session cookie, is in error. From my reads of RFC2109 RFC2068, quotes are reserved characters, they

Re: HttpClient and cookies

2008-10-22 Thread sebb
On 22/10/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Wed, 2008-10-22 at 19:00 +0100, sebb wrote: On 22/10/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Wed, 2008-10-22 at 11:52 +0100, sebb wrote: On 22/10/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Tue

Re: MultithreadedHttpConnectionManager and high loads

2008-10-27 Thread sebb
On 27/10/2008, De Groot, Cees [EMAIL PROTECTED] wrote: Hi, We're using HC in order to access an internal high-volume service (thousands reqs/sec), and we noticed that DefaultHttpParams is synchronized all over the place. This kills concurrency (I have a thread dump showing ~1200 threads

Re: MultithreadedHttpConnectionManager and high loads

2008-10-28 Thread sebb
On 28/10/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Tue, 2008-10-28 at 09:19 -0700, Tatu Saloranta wrote: --- On Mon, 10/27/08, sebb [EMAIL PROTECTED] wrote: From: sebb [EMAIL PROTECTED] Subject: Re: MultithreadedHttpConnectionManager and high loads To: HttpClient User

Subject: ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-04 Thread sebb
Can't make ApacheCon this week in New Orleans? You can still watch all the keynotes, Apache 101 sessions, and system administration track in live video streams: http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann Keynotes and the Apache 101 lunchtime sessions are free; the

Re: Finding out the URL after a redirect

2008-11-11 Thread sebb
On 11/11/2008, Amy de Buitléir [EMAIL PROTECTED] wrote: Is there a way to find out what URL a request was redirected to? Here's the scenario: 1. My code (client) does a GET http:/a/b/x 2. Server redirects to http://a/b/c/x (HttpClient handles the redirect) 3. Parsing the page, my code

Re: Download not working

2008-11-13 Thread sebb
Works OK for me at present. Please try again - maybe there was a temporary error. On 13/11/2008, Chris Lowe [EMAIL PROTECTED] wrote: Hello all, I've been trying to download HttpCore from http://hc.apache.org/downloads.cgi (i.e. the main download link for the HttpCore site) since

Re: Question about creating a simple HTTP proxy

2008-11-26 Thread sebb
On 26/11/2008, Chris Lowe [EMAIL PROTECTED] wrote: If it's just for debugging then I strongly recommend using the Charles Web Debugging Proxy: http://www.charlesproxy.com/ http://wiki.apache.org/jakarta-jmeter/NetworkSniffer has some other suggestions. If your Java programs are using

Re: Question about creating a simple HTTP proxy

2008-11-26 Thread sebb
In that case, Apache TCPMon http://ws.apache.org/commons/tcpmon/tcpmontutorial.html is written in Java. On 26/11/2008, corpaul [EMAIL PROTECTED] wrote: Hi, thanks for your message. I know of many other existing HTTP proxies but I want to be able to include it in my Java project rather

Re: Facing problems to send viewstate value through post method

2008-11-28 Thread sebb
Regardless of how JSF works internally, a browser only communicates with a server using HTTP. What you need to do is to ensure that the HttpClient code sends the same (or sufficiently similar) requests as a browser would do. In the case of form fields, when a user presses the send button, the

Re: PUT to iis is failing

2008-11-28 Thread sebb
On 28/11/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I need to PUT files onto an IIS v6 server. Please don't post multiple times. My attempts to PUT to an IIS fail with a 403 response code. Attempts to PUT the same file to the same IIS URI in cadaver or BitKinex are successful. I

Re: PUT to iis is failing

2008-11-28 Thread sebb
Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Friday, November 28, 2008 3:09 PM To: HttpClient User Discussion Subject: Re: PUT to iis is failing On 28/11/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for the reply! Please don't post multiple times

Re: Facing Issues in performing multiple posts over a secure(HTTPS) connection

2008-11-30 Thread sebb
On 30/11/2008, Vishwas Babu [EMAIL PROTECTED] wrote: Hi Oleg, Thanks for the reply, please find the log below Thanks and Regards, Vishwas I could be wrong, but it looks to me as though the redirect for the second POST is causing the problem. The sequence is: POST

Re: unreadable response body

2008-12-04 Thread sebb
On 03/12/2008, Mike Clark [EMAIL PROTECTED] wrote: -Original Message- From: Subashini S [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 1:26 PM To: HttpClient User Discussion Subject: unreadable response body Hi, I'm trying to fetch a url similar to the

Re: Httpclient 3.1 encodes null=null parameters under stressing conditions

2008-12-11 Thread sebb
On 11/12/2008, Oleg Kalnichevski [EMAIL PROTECTED] wrote: On Wed, 2008-12-10 at 13:33 +, Domet De Mont, Dominique (d3m) wrote: Dear List, I am facing a strange httpclient 3.1 behaviour under stressing conditions while encoding a post: the set of parameters is nullified, whereas the

Re: Login issues

2008-12-30 Thread sebb
On 30/12/2008, david.kenn...@accenture.com david.kenn...@accenture.com wrote: Hi All, I have been trying to log into a website for the past few days but with no luck using HTTPClient. I will now post all my findings so hopefully someone can spot my mistakes. The form on the site has this

[Travel Assistance] Applications for ApacheCon EU 2009 - Now Open

2009-01-24 Thread sebb
-- Forwarded message -- From: Tony Stevenson pct...@apache.org Date: 23 Jan 2009 13:28 Subject: [Travel Assistance] Applications for ApacheCon EU 2009 - Now Open To: travel-assista...@apache.org The Travel Assistance Committee is now accepting applications for those wanting

Fwd: [ANN-pmcs] Registration for ApacheCon Europe 2009 is now open!

2009-01-28 Thread sebb
ApacheCon EU 2009 registration is now open! 23-27 March -- Mövenpick Hotel, Amsterdam, Netherlands http://www.eu.apachecon.com/ Registration for ApacheCon Europe 2009 is now open - act before early bird prices expire 6 February. Remember to book a room

Re: NO_HTTP_RESPONSE_EXCEPTION

2009-02-06 Thread sebb
On 06/02/2009, Oleg Kalnichevski ol...@apache.org wrote: Joan Balagueró wrote: Thanks Oleg. It seems strange to me because HttpClient3 (sending requests to the same server) never fails. I'll take a look at the code again and I'll comment you something else. I do not know why the

Fwd: ApacheCon Training info - please forward to your user lists

2009-02-10 Thread sebb
-- Forwarded message -- From: Lars Eilebrecht l...@apache.org Date: 10 Feb 2009 01:42 Subject: ApacheCon Training info - please forward to your user lists To: p...@apache.org Dear PMC chair and members, please help us advertise ApacheCon and send the following announcement to

Re: NO_HTTP_RESPONSE_EXCEPTION

2009-02-18 Thread sebb
the problem is occurring. Oleg Thanks, Joan. -Mensaje original- De: Oleg Kalnichevski [mailto:ol...@apache.org] Enviado el: sábado, 07 de febrero de 2009 14:08 Para: HttpClient User Discussion Asunto: Re: NO_HTTP_RESPONSE_EXCEPTION sebb wrote: On 06/02/2009, Oleg

Re: Redirect on authentication

2009-02-26 Thread sebb
Or you can use one of the browser add-ons that show you the requests and responses. On 26/02/2009, Jeff Davis j...@flyingdiamond.com wrote: Hi, Scripted logins are generally purposely hard to crack. There is quite possibly hidden vars along with the user and pass, sometimes javascript

Re: IO Exception when Content size increases

2009-03-30 Thread sebb
On 30/03/2009, SaravananD dls.sa...@gmail.com wrote: Hi All, There is no issues in authentication. I am getting 500 - Internal Server error as response while sending HTTP request with content of above 10MB. I used WireShark tool to grab the packets which is sent from client to HTTP

Re: HttpClient performance

2009-04-21 Thread sebb
On 21/04/2009, HockeyDave david_peterson4...@yahoo.com wrote: I wouldn't want to. I'm not pointing out that anything is wrong with HttpCore. I'm just pointing out that your test case has a problem in its code. This test case code will throw a nullpointerexception when you fail to

Re: HttpClient : host did not accept the connection within timeout of 5000 ms

2009-04-21 Thread sebb
On 21/04/2009, Christian Gendreau cgendr...@ctecworld.com wrote: Hi, I'm using httpclient 3.1 to access a custom WebService from a Java program. Sometimes, I got a HttpClient error that says The host /did not accept/ the connection within timeout of /5000/ ms. The error pop at random time

E-mail bounced as spam (was Re: Can servers block programmatic form submissions?)

2009-04-21 Thread sebb
On 21/04/2009, mnenchev nenchev.mari...@gmail.com wrote: Hi, i am new with this mailing lists stuff. Excuse me for spaming this topic, but i dont know what else to do. I am subscribed fro this mail list(i receive mails and i can post in other threads, but i can't post my thread :(. I

Re: Creating Cookies, set domain

2009-04-28 Thread sebb
On 28/04/2009, RedCarpet bluecar...@gmx.com wrote: I'm using HttpClient 4.0-beta2 Problem: My app needs to be able to create cookies that are used to login on a website, on the first HTTP request. With httpclient-3.x I could easily create a cookie using: Cookie(String domain, String

Re: [HttpClient] HttpClient 4.0-rc2

2009-07-23 Thread sebb
? On 23/07/2009, sebb seb...@gmail.com wrote: On 15/07/2009, Oleg Kalnichevski ol...@apache.org wrote: Folks Please test your applications against 4.0-rc2 and report bugs if found. There have been three fixes since 4.0-rc1 * [HTTPCLIENT-860] HttpClient no longer converts

Re: [HttpClient] HttpClient 4.0-rc2

2009-07-26 Thread sebb
On 24/07/2009, Oleg Kalnichevski ol...@apache.org wrote: On Fri, Jul 24, 2009 at 03:01:34PM +0100, sebb wrote: On 24/07/2009, Oleg Kalnichevski ol...@apache.org wrote: On Fri, Jul 24, 2009 at 01:59:23PM +0100, sebb wrote: On 24/07/2009, Oleg Kalnichevski ol...@apache.org wrote

Re: HttpClient

2009-08-19 Thread sebb
On 19/08/2009, Oleg Kalnichevski ol...@apache.org wrote: On Wed, Aug 19, 2009 at 01:05:51PM +0300, Al Jesco wrote: 2009/8/19 Oleg Kalnichevski ol...@apache.org: On Wed, Aug 19, 2009 at 01:00:23PM +0300, Al Jesco wrote: 2009/8/19 Oleg Kalnichevski ol...@apache.org: On Tue, Aug 18,

Re: How to configure mod_jk+loadbalance+https in Apache 2.2

2009-08-25 Thread sebb
On 25/08/2009, viola.lu viola...@gmail.com wrote: Hi, i am setting Apache https forward and loadbalance with mod_jk on tomcat, /etc/httpd/config/httpd.conf as below: This is the wrong mailing list. Please direct your question to the httpd user list, see:

Re: Question regarding the redirects

2009-09-08 Thread sebb
I just tried the URL using Apache JMeter 2.3.4 which uses HC 3.1, and that shows the 304 Redirect response correctly, so long as one sets method.setFollowRedirects(false). Are you sure you are setting this correctly? On 08/09/2009, Rutuja Joshi rutuja.jo...@sun.com wrote: Hi Sebb, Sorry

Re: Question regarding the redirects

2009-09-08 Thread sebb
On 08/09/2009, Rutuja Joshi rutuja.jo...@sun.com wrote: Thanks Sebb! I had actually commented out method.setFollowRedirects(true) in the code thinking that the default is false.When I explicitly set it to false, I get the response code as 302 (HTTP/1.1 302 Moved Temporarily) and not 304

Re: Question regarding the redirects

2009-09-08 Thread sebb
On 08/09/2009, sebb seb...@gmail.com wrote: On 08/09/2009, Rutuja Joshi rutuja.jo...@sun.com wrote: Thanks Sebb! I had actually commented out method.setFollowRedirects(true) in the code thinking that the default is false.When I explicitly set it to false, I get the response

Re: Question regarding the redirects

2009-09-08 Thread sebb
On 09/09/2009, Rutuja Joshi rutuja.jo...@sun.com wrote: Hi sebb, httpMethod.getURI() gives the URL as http://www.opensolaris.org/jive/login!withRedirect.jspa, so basically its the URL that this method tired to connect to and received a 302 response. I was hoping to get https

Re: Warning: SimpleHttpConnectionManager being used incorrectly

2009-09-23 Thread sebb
On 23/09/2009, Christoph Jaehnigen christoph.jaehni...@gmail.com wrote: I get the following warning from the SimpleHttpConnectionManager: org.apache.commons.httpclient.SimpleHttpConnectionManager getConnectionWithTimeout WARNUNG: SimpleHttpConnectionManager being used incorrectly. Be sure

Re: Warning: SimpleHttpConnectionManager being used incorrectly

2009-09-23 Thread sebb
On 23/09/2009, Christoph Jaehnigen christoph.jaehni...@gmail.com wrote: On Wed, Sep 23, 2009 at 17:20, sebb seb...@gmail.com wrote: Does the code do what the error message says? The error message says it all really... That's the point: I do not explicitly use threading, not in Java

Re: Parallel Webcrawler Implementation

2009-09-24 Thread sebb
On 24/09/2009, Ken Krugler kkrugler_li...@transpac.com wrote: Hi Tobi, First, I'd suggest getting and reading through the sources of existing Java-based web crawlers. They all use HttpClient, and thus would provide much useful example code: Nutch (Apache) Droids (Apache) Heritrix

Re: Cookie rejected

2009-10-05 Thread sebb
that are provided? D/ On Oct 5, 2009, at 4:21 AM, sebb wrote: On 05/10/2009, Douglas Ferguson doug...@douglasferguson.us wrote: Im using HttpClient from apache commons I get of bunch of these warnings in my logs. I could set HttpmethodBase to INFO but I'd be worried that I'd loose

Re: Cookie rejected

2009-10-05 Thread sebb
So - try using a different policy. See: http://hc.apache.org/httpclient-3.x/cookies.html On 05/10/2009, Douglas Ferguson doug...@douglasferguson.us wrote: I guess I'm using the default. I just generating a GetMethod and then running execute. D/ On Oct 5, 2009, at 2:45 PM, sebb wrote

Re: import can not be resolved error

2010-01-06 Thread sebb
On 06/01/2010, Ajay Bansal ajay.bansa...@gmail.com wrote: Hi friends, Today I was trying to use httpclient to generate some http requests. However, I am not able to go past the first step itself. I am getting errors for following classes : import

Re: Blocked threads during requests

2010-01-09 Thread sebb
On 09/01/2010, Ken Krugler kkrugler_li...@transpac.com wrote: [In the interest of not hijacking Tony's discussion thread, I'm putting this into a new email.] Tony Poppleton wrote: Hi, Further to the previous mail, I have already implemented my own AbstractHttpEntity to eliminate a

Re: Blocked threads during requests

2010-01-10 Thread sebb
On 10/01/2010, Oleg Kalnichevski ol...@apache.org wrote: sebb wrote: On 09/01/2010, Ken Krugler kkrugler_li...@transpac.com wrote: [In the interest of not hijacking Tony's discussion thread, I'm putting this into a new email.] Tony Poppleton wrote: Hi

Re: apache commons HttpClient Base64 encoding of multibyte characters issue

2010-01-21 Thread sebb
On 21/01/2010, Usha_N usha.na...@siemens.com wrote: Hello, We are using apache commons HttpClient library (commons-httpclient-3.1.jar). Users are providing username and password that has multibyte characters in it. Base64 encoding of the mutlitbyte characters in HttpClient doesn’t seem

Re: Any up-to-date comparison of HttpClient vs. HttpUrlConnection?

2010-01-28 Thread sebb
On 28/01/2010, Oleg Kalnichevski ol...@apache.org wrote: On Wed, 2010-01-27 at 15:08 -0800, KARR, DAVID (ATTCINW) wrote: Every once in a while, informal discussions come up about the advantages of HttpClient vs. HttpUrlConnection. Is there an up to date version of that comparison, so

Re: Any up-to-date comparison of HttpClient vs. HttpUrlConnection?

2010-01-28 Thread sebb
On 28/01/2010, Sam Crawford samcrawf...@gmail.com wrote: What functions does HttpUrlConnection still require using system properties for, which HttpClient provides on an instance basis? I know that HttpUrlConnection used to require use of system properties for the read and connection

Re: HttpClient 4.0 encoding madness

2010-01-29 Thread sebb
On 29/01/2010, Ken Krugler kkrugler_li...@transpac.com wrote: On Jan 28, 2010, at 10:09pm, amoldavsky wrote: Hi Oleg, Thank you for the quick reply. So if there is a possibility that not the whole buffer is filled how can I insure or force HttpClient to fill the whole buffer?

Re: HttpClient 4.0 encoding madness

2010-01-29 Thread sebb
On 29/01/2010, amoldavsky assaf.moldav...@gmail.com wrote: Hi Oleg, Let me rephrase the question in better terms: If the server document is Y and buffer size is X, let's even assume that Y = kX where X Y, is it possible that any buffer 0 x (k-1) will not be fully filled? Remember

Re: Schema registry

2010-02-25 Thread sebb
On 25/02/2010, Joan Balaguero joan.balagu...@grupoventus.com wrote: Hello, Just a question about Schema registry implementation. The schemes are stored in a LinkedHashMap, and methods to access/modify this map must be, then, synchronized. Is there any reason to use LinkedHashMap in

Re: Error using import org.apache.commons.httpclient.*

2010-03-07 Thread sebb
On 07/03/2010, HughT nadinemoacd...@gmail.com wrote: Hello, I'm new to Apache and I'm trying to use HttpClient in Java, but just can't seem to be able to get the right jar file for some reason. I keep getting an error that the package org.apache.commons.httpclient does not exist. I

Re: Error using import org.apache.commons.httpclient.*

2010-03-07 Thread sebb
. sebb-2-2 wrote: On 07/03/2010, HughT nadinemoacd...@gmail.com wrote: Hello, I'm new to Apache and I'm trying to use HttpClient in Java, but just can't seem to be able to get the right jar file for some reason. I keep getting an error that the package

Re: How to do cookies with NHttp*?

2010-03-13 Thread sebb
On 12/03/2010, Ken Krugler kkrugler_li...@transpac.com wrote: On Mar 12, 2010, at 8:30am, Todor Boev wrote: Did that...works just fine. 10x 10x what? Seems to be Internet Slang for thanks: http://topicpulse.com/articles/article/internet_slang_list/ Warning, some of the descriptions

Re: Timeout experience

2010-03-30 Thread sebb
On 30/03/2010, Mohit Anchlia mohitanch...@gmail.com wrote: Apache 2.2.11 This list is for HttpComponents HttpClient, not Apache httpd server discussions. See: http://httpd.apache.org/lists.html I am reviewing the timeout values in worker.properties because currently if one node out of so

Re: Download a file by going to website and submitting a form

2010-04-30 Thread sebb
On 30/04/2010, Mini Traktor minitrak...@yahoo.com wrote: Hi! I used Proxomitron to find out that the parameters were being posted when clicking on the download button (the SÖK button): __VIEWSTATE=%2FwEPDwUJMTMxNTMwMTE1D2QWAmYPZBYCAgMPZBYEAgEPZBYkAgMPPCsADQEMFCsABQ

Re: Getting past authentication to Flickr/Yahoo

2010-05-03 Thread sebb
I suggest you use a browser addon to log the HTTP requests which are needed. Alternatively, use a protocol analyser such as Wireshark. On 03/05/2010, lsacco occ...@gmail.com wrote: I've been working on a program to access the TOS from Flickr (http://www.flickr.com/services/api/tos/), but to

Re: Getting past authentication to Flickr/Yahoo

2010-05-05 Thread sebb
On 05/05/2010, lsacco occ...@gmail.com wrote: olegk wrote: Yahoo as well as other high profile sites intentionally make it very difficult to script their login process. Yeah, no kidding! Here's my code...I basically combed there form and create new NameValuePairs for them.

[Travel Assistance] - applications Open for ApacheCon NA 2010

2010-05-17 Thread sebb
The Travel Assistance Committee is now taking in applications for those wanting to attend ApacheCon North America (NA) 2010, which is taking place between the 1st and 5th November in Atlanta. The Travel Assistance Committee is looking for people who would like to be able to attend ApacheCon,

Re: BindException while using HttpClient under load

2010-05-24 Thread sebb
On 25/05/2010, CrystalCracker purplehear...@hotmail.com wrote: I have got 1000 dedicated Java threads where each thread polls a corresponding url every one second. Simplified version of the code is like this MyThread extends() { Node node; MyThread(Node node) { this.node

Re: Can't get SSL / https to work

2010-09-14 Thread sebb
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 org.apache.http.client.HttpClient; import

Re: Backslash in URL

2010-09-17 Thread sebb
On 17 September 2010 18:13, John Smith deaf@gmail.com wrote: I couldn't understand why I can't use backslash (%5C) symbol in URL? I've created file \mytest.php in my Linux box and sent request in Firefox http://localhost/\mytest.php and everything worked fine. But when I try use

Re: Howto: call a Servlet from another Servlet (example)?!

2010-09-20 Thread sebb
On 20 September 2010 14:44, Michael Stockhausen prof.dr.moe...@googlemail.com wrote: Hello, I have create two Servlets (LoginServlet UserListServlet). I'm using a JSP für the User credentials. When you press the login-button, the LoginServlet is called. I would like to call the

Re: sending/streaming audio data using chunked encoding

2010-09-21 Thread sebb
On 21 September 2010 10:36, nitin singh xmlpr...@gmail.com wrote: Hi, I am trying to stream real time audio data (usual length will be 30 seconds) using http chunking. Specifially, the client will do a Post request with TransferEncoding set as chunked in http 1.1. - I have a thread which

Re: sending/streaming audio data using chunked encoding

2010-09-21 Thread sebb
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 available. So I need a OutputStream while

Re: httpclient javadoc 404's

2010-09-22 Thread sebb
On 22 September 2010 11:48, Brian McBride br...@epimorphics.com wrote:  Wasn't sure best place to send this.  Jira seemed like overkill. OK, the mail-list is fine here. I can probably deal with these today. But if they don't get fixed soon, it might need a JIRA to make sure they get done

Re: httpclient javadoc 404's

2010-09-22 Thread sebb
On 22 September 2010 12:01, sebb seb...@gmail.com wrote: On 22 September 2010 11:48, Brian McBride br...@epimorphics.com wrote:  Wasn't sure best place to send this.  Jira seemed like overkill. OK, the mail-list is fine here. I can probably deal with these today. Done, I think. Also fixed

Re: Facebook login fails

2010-10-01 Thread sebb
On 1 October 2010 05:34, manoj patidar manoj_pati...@yahoo.com wrote: Hi All, I am login to facebook site using httpclient, it logs in 70% of times but fails 30% of time, i am not able to find the solution, any help would be greatly appreciated. It would be easier for others to provide help

Re: Weird problem with hostname resolution

2010-10-11 Thread sebb
On 11 October 2010 18:36, Christopher Laux ctl...@googlemail.com wrote: Hi all, I'm using httpclient v4.0.3 in a multi-threaded (currently 20 threads) setup, and am receiving unexpected UnknownHostException s. Some of the threads seem to be resolving without problems, I can execute a manual

Re: Weird problem with hostname resolution

2010-10-12 Thread sebb
On 11 October 2010 21:12, Christopher Laux ctl...@googlemail.com wrote: Hi, it turned out to be caused by a high maximum number of connections (setMaxTotalConnections) and/or connections per route (setMaxConnectionsPerRoute). Setting these values to 500 and 200 respectively makes it work

Re: Weird problem with hostname resolution

2010-10-13 Thread sebb
On 13 October 2010 08:49, Christopher Laux ctl...@googlemail.com wrote: Thanks for letting us know the resolution. So it seems it was resource exhaustion after all, but within the JVM rather than for the host OS. Which resource would that be? Resident memory is barely above 300m with a 3g

Re: MultiThreadedHttpConnectionManager general question

2010-12-04 Thread sebb
On 4 December 2010 15:28, Andy andrh...@hotmail.com wrote: Hi,I would like to use HttpClient in a multi-threaded environment so I am looking at using the MultiThreadedHttpConnectionManager.I read the document at:  http://hc.apache.org/httpclient-3.x/threading.htmlBut I am still not quite

Re: Iterating HttpParams in HttpClient3.x

2010-12-10 Thread sebb
On 10 December 2010 05:57, sansun08 csshankaravadi...@gmail.com wrote: Is there a way to iterate through HttpParams in HttpClient3.x? Am I missing something fundamental here? It does not look like there is any access to the local parameter map. Thanks Sankar -- View this message in

Re: issue with 4.1 %3A encoding not handled in url parameter?

2010-12-13 Thread sebb
I can confirm the problem. Another work-round is to use http://www.cnn.com:80/... It looks like the code is checking for the colon (%3A) in the wrong part of the URL. On 13 December 2010 18:03, sansun08 csshankaravadi...@gmail.com wrote: I too had this problem . I had to go back to version

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

2011-01-02 Thread sebb
On 2 January 2011 22:42, Isao Isaac Saito 1...@lateeye.net wrote: Self-response. 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

Re: HttpDelete and similar could exhaust your http connection pool if not handled properly

2011-01-11 Thread sebb
On 11 January 2011 18:17, Stevo Slavić ssla...@gmail.com wrote: It seems they were. On client side of communication I now have:                HttpDelete httpDelete = new HttpDelete(deleteUrl); s/httpDelete/delete/ ?                try {                        HttpResponse response =

Re: Upgrade from Commons HttpClient to HttpClient 4.1

2011-02-07 Thread sebb
On 7 February 2011 10:01, ewan.sla...@googlemail.com wrote: Hi Guys, Thanks for the suggestions. It seems that upgrade in this case uses what one of my friends (who works in product management for a software vendor) describes as a bumpy upgrade path with limited appeal to the customer

Re: Header and Content parsing and saving as html page

2011-02-10 Thread sebb
On 10 February 2011 23:51, Night Mare nighttmm...@gmail.com wrote: Hi there, I have captured some http packets using wireshark. And I want to save content of these packets like index.html I can read packets and convert them to the string but  i can not decode them (chunk, gzip vs. problems)

Re: Request decoding

2011-02-16 Thread sebb
On 16 February 2011 09:44, CodingForever nighttmm...@gmail.com wrote: Hi, there I handled http responses using; SessionInputBuffer inbuffer = new SessionInputBufferMockup(s, US-ASCII); HttpResponseParser parser = new

Re: java.io.IOException: Request already aborted - Why ThreadSafeClientConnManager does not renew connection?

2011-02-16 Thread sebb
On 16 February 2011 10:41, Maxim Veksler ma...@vekslers.org wrote: On Tue, Feb 15, 2011 at 3:06 PM, Oleg Kalnichevski ol...@apache.org wrote: Well, I finally spotted an obvious problem with your code, which I should have found earlier: HttpRequest objects are NOT thread-safe. They may not be

Re: Download of HttpClient 4.1 with dependencies link should be removed from http://hc.apache.org/downloads.cgi?

2011-03-13 Thread sebb
On 13 March 2011 21:47, Lars Vogel lars.vo...@googlemail.com wrote: Hi, thanks to Oleg Kalnichevski for answering my question about Download of HttpClient 4.1 with dependencies: http://mail-archives.apache.org/mod_mbox/hc-httpclient-users/201103.mbox/browser Sorry the the late reply, I'm

Re: Failure to read SSL certs with Red Hat RHEL 4 versions of openssl

2011-03-28 Thread sebb
On 29 March 2011 00:39, Mike Papper bodarot...@gmail.com wrote: Hi, Im looking for help using HttpClient with Ruby on Rails. Heres our environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 4) openssl version: OpenSSL 0.9.8e 23 Feb 2007 or OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

Re: Stale Connection Check

2011-03-29 Thread sebb
On 29 March 2011 20:00, Vadheraju, Rajeshwar rajeshwar.vadher...@fisglobal.com wrote: Oleg, Sorry if I sounded like forcing you to answer my question. I observed that you are the only active person responding to the questions and really hoping that you provide answers to my questions given

  1   2   >