commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Verma, Nitin (GECP, OTHER, 529706)" <NITIN.VE...@APPL.GE.COM>
Subject RE: [HttpClient] What method should be used to add params to a po st met hods
Date Tue, 03 Jun 2003 12:31:48 GMT
Wouldn't it be better to have 
method.setRequestBody(NameValuePairList list) ?
 
where NameValuePairList implements java.util.List (or extends a List Type)

-----Original Message-----
From: Verma, Nitin (GECP, OTHER, 529706) 
Sent: Tuesday, June 03, 2003 5:31 PM
To: Jakarta Commons Users List
Subject: RE: [HttpClient] What method should be used to add params to a po
st met hods



Thanx it works :-) 

method.setRequestBody(new NameValuePair [] { new NameValuePair( "", "" ) });


-----Original Message----- 
From: Norrod, Dennis G Mr Veridian-MRJ 
[ mailto:Dennis.Norrod@DET.AMEDD.ARMY.MIL
<mailto:Dennis.Norrod@DET.AMEDD.ARMY.MIL> ] 
Sent: Tuesday, June 03, 2003 5:21 PM 
To: Verma, Nitin (GECP, OTHER, 529706); 'Jakarta Commons Users List ' 
Subject: RE: [HttpClient] What method should be used to add params to a 
po st met hods 


Hi Nitin, 

Docs say setRequestBody(NameValuePair[]). I use MultipartPostMethod
exclusively (so far), which has not (yet?) deprecated the addParameter
methods. HTH.

Later. 
Dennis  

-----Original Message----- 
From: Verma, Nitin (GECP, OTHER, 529706) 
To: Jakarta Commons Users List 
Sent: 6/3/03 7:10 AM 
Subject: RE: [HttpClient] What method should be used to add params to a po
st  met hods 

Anyone any clue? 

-----Original Message----- 
From: Verma, Nitin (GECP, OTHER, 529706) 
Sent: Tuesday, June 03, 2003 1:44 PM 
To: Jakarta Commons Users List 
Subject: [HttpClient] What method should be used to add params to a post 
met hods 




        PostMethod method = new PostMethod(url); 

method.setParameter( "","" ); 
method.addParameter(new NameValuePair("", "")); 
method.addParameter("", ""); 
  
  
are deprecated as for my dependency 
  
    <dependency> 
        <id>commons-httpclient</id> 
        <version>2.0-alpha3</version> 
        <url> http://jakarta.apache.org/commons/httpclient/
<http://jakarta.apache.org/commons/httpclient/> </url> 
    </dependency> 
  
What method should be used? 

 <<ATT25071.txt>> 


Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message