Re: A proble with the buffer

2008-03-25 Thread hjw
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 change the size

The abort operation is close the socket

2008-03-19 Thread hjw
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 condition.So , I need to interrupt the IO operation and let

Re: How could cause connection reset

2008-03-17 Thread hjw
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 2008/3/18, Oleg Kalnichevski [EMAIL PROTECTED]: On Fri, 2008-03-14 at 11:24 +0800, hjw wrote: Hi

Re: How could cause connection reset

2008-03-17 Thread hjw
You are right,but data on the server I request is change frequence ,sometimes may be 2 version data in one second. 2008/3/18, 游泳池的鱼 [EMAIL PROTECTED]: I think you are make spider. some server refuse you request when you send http request more frequence, like google 2008/3/18, hjw [EMAIL

A problem about save image

2008-02-28 Thread hjw
Hi. I try to write a programme ,which is used to download imagein some html. I can get the page content ,and analyse the image url ,but when I download and save the image using InputStream and ImageIO,there is a problem .It is the size of image is not right,it seems the image was only a part of