commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
Subject Re: DO NOT REPLY [Bug 10553] - New method to add an array of parameters to a PostMethod
Date Tue, 09 Jul 2002 07:02:34 GMT
Cool. Thanks for the RFC reference, saves me going off to find it :)

And I think I can get a patch done reasonably soon. Could've used it two 
days ago myself :)
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


jsdever wrote on 07/09/2002 12:43:05 PM:

> dIon,
> 
> No,  according to rcf2616 the query string is allowed as an optional
> component for any URL:
>     http_URL = "http:" "//" host [ ":" port ] [ abs_path [ "?" query ]]
> So it makes sense that setQueryString and such is in the HttpMethodBase.
> 
> Only POST methods (afaik) take a x-www-form-urlencoded content header,
> which seems to be the purpose of the setParameter and such methods. The
> "parameters" would be urlencoded (using URIUtil.encode presumably) and
> stuffed in the content body.   The query string, if any, remains part of
> the URL.  The query string and the parameters are independant so it does
> makes sense that there are different methods to handle them, as it is
> currently.
> 
> It would just be nice to add a bunch of parameters as a NameValuePair
> array in the same way that you already can with the query string.
> 
> I modified the bug title to make it clear that we are just talking about
> PostMethod.
> 
> 
> 
> dion@multitask.com.au wrote:
> 
> > Ok, so is this a vote to get rid of setQueryString(NameValuePair[] ) 
as
> > well?
> > --
> > dIon Gillard, Multitask Consulting
> > Work:      http://www.multitask.com.au
> > Developers: http://adslgateway.multitask.com.au/developers
> >
> > bugzilla@apache.org wrote on 07/09/2002 12:51:37 AM:
> >
> > > DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> > > RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> > > <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10553>.
> > > ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> > > INSERTED IN THE BUG DATABASE.
> > >
> > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10553
> > >
> > > New method to add an array of parameters to a HttpMethod
> > >
> > >
> > >
> > >
> > >
> > > ------- Additional Comments From jsdever@sympatico.ca  2002-07-08
> > > 14:51 -------
> > > Should also add a method:
> > >
> > > void addParameter(NameValuePair parameter)
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <mailto:commons-dev-help@jakarta.apache.org>
> > >
> 
> 
> --
> To unsubscribe, e-mail: 
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
<mailto:commons-dev-help@jakarta.apache.org>
> 

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