commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir D. Kolsky" <a...@kolsky.com>
Subject RE: HttpClient Post
Date Wed, 24 Apr 2002 12:09:49 GMT
Sort of... I now have to figure out why it doesn't work :-)
Which method on a XxxMethod returns the request body? I want to make sure that what I put
in is what I *think* I put in...

Amir

-----Original Message-----
From: Waldhoff, Rodney [mailto:rwaldhof@us.britannica.com]
Sent: Wed, April 24, 2002 3:01 PM
To: 'Jakarta Commons Developers List '
Subject: RE: HttpClient Post


> When the HTTP header is built, getName
> is used to figure out which method it 
> is, right?

Right, so that:

class MyPostMethod extends PutMethod {
  public String getName() { return "POST"; }
}

does what you're looking for, I think.

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message