hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: Moving from 2.0.2 to 3.0 - Connection is not open
Date Tue, 24 Apr 2007 14:19:25 GMT
Hello,

> I'm moving from httpclient 2.0.2 to 3.0 and I found that with the 3.0 
lib I
> have to explicitly open the HTTPConnection before I execute the 
POSTMethod,
> with the 2.0.2 lib the HTTPConnection opened when the POSTMethod 
executed.
> Does that sound correct or did I miss something?

You're not supposed to call method.execute(...) at all.
You should be calling client.executeMethod(method,...), then
the HttpClient will take care of opening the connection.

hope that helps,
  Roland


Mime
View raw message