hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Dever <jsde...@sympatico.ca>
Subject Re: NOSUCH METHOD ERROR
Date Thu, 12 Dec 2002 05:16:44 GMT
Kiran,

I am very happy that you have taken an interest in HttpClient.  It's 
important to have users and you certainly qualify.

However, I find the volume and low quality nature of your questions 
excessive.  There are many people that read these postings who are 
professionals and are spending valuable time here for both interest and 
employment.  Please post only well formed questions after significant 
research into the online documentation and javadocs.

I personally do not publicly ask questions without spending at least a 
day trying to figure out the problem.  Even if I am unable to figure it 
out on my own, I learn 100 things along the way.  And when I do ask a 
question, I can post a question and get an answer as I know that I have 
done the best I could on my own.

I believe that there is a general expectation for everyone to act 
similarly.  Please refer to the following URL for more information in 
posting to mailing lists:
http://jakarta.apache.org/site/mail.html

-jsd


Thandra, Kiran wrote:

>Its with my previous question .
>If i use this i get a file not found error.
>org.apache.commons.httpclient.methods.GetMethod("/xyzUsrEdit.asp"");
>
>basically my file path is different
>
>org.apache.commons.httpclient.methods.GetMethod("/abc/xyzUsrEdit.asp"");
>
>It gives me 
>
> No such method exists:
> org.apache.commons.httpclient.methods.GetMethod get = new
> org.apache.commons.httpclient.methods.GetMethod("/abc/xyzUsrEdit.asp"");
>
>
>
>get.execute(state,conne) it gives me a compile time error says No such
>method exists
>
>
>I think it is some thing to do with the PATH
>
>
>When we are going to get a latest released version .
>
>I appreciate your time.
>
>Thanks,
>Thandra
>
>-----Original Message-----
>From: Oleg Kalnichevski [mailto:o.kalnichevski@dplanet.ch]
>Sent: Wednesday, December 11, 2002 5:52 PM
>To: Commons HttpClient Project
>Subject: Re: Questions about executing multiple methods in one session
>
>
>HttpClient.startSession() and HttpClient.endSession() methods have been
>deprecated. Do not use them.
>
>Use the following pattern to execute multiple methods:
>
>HttpClient client = new HttpClient();
>client.getHostConfiguration().setHost(host, port, "http");
>
>GetMethod httpget = new GetMethod("/first");
>method.setUseDisk(false);
>
>client.executeMethod(httpget);
>String response1 = method.getResponseBodyAsString();
>        
>httpget.recycle();
>
>httpget.setPath("/second");
>client.executeMethod(httpget);
>String response2 = method.getResponseBodyAsString();
>        
>httpget.recycle();
>
>httpget.setPath("/third");
>client.executeMethod(httpget);
>String response3 = method.getResponseBodyAsString();
>
>
>Http protocol does not support sessions as such, it's been designed as a
>stateless, request/response based protocol. HttpSession is a logical
>concept, implemented using a cookie that contains a session id that
>uniquely identifies a series of logically related HTTP requests. HTTP
>Session times out when cookie expires
>
>Oleg 
>
>
>
>On Wed, 2002-12-11 at 18:28, Thandra, Kiran wrote:
>  
>
>>Hello,
>>What does clinet.startSession() mean? Is it similat to our HttpSession .Do
>>we have any session time outs for this session.Can i execute any number of
>>methods whithin this session.
>>
>>Thanks
>>Thandra
>>
>>-----Original Message-----
>>From: Kalnichevski, Oleg [mailto:oleg.kalnichevski@bearingpoint.com]
>>Sent: Wednesday, December 11, 2002 7:55 AM
>>To: Commons HttpClient Project
>>Subject: [PATCH] PostMethod does properly recycle when request buffering
>>is used
>>
>>
>>Please use TestPostRecycle test case to reproduce the problem. The patch
>>attached below should fix the problem
>>
>>Oleg
>>
>>--
>>To unsubscribe, e-mail:
>>    
>>
><mailto:commons-httpclient-dev-unsubscribe@jakarta.apache.org>
>  
>
>>For additional commands, e-mail:
>>    
>>
><mailto:commons-httpclient-dev-help@jakarta.apache.org>
>  
>


Mime
View raw message