You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Jason Chambers <jc...@nubridges.com> on 2006/02/28 00:04:42 UTC

Which version of Http client is used in jakarta-slide-webdavclient-bin-2.1

Hi folks

 

I am trying to debug connectivity to an Oracle 10g WebDav server (part
of Oracle XML DB).

 

GET seems to work ok, but PUT does not (most likely a configuration
issue). I'd like to debug the client code but need to know which Http
Client version is being used in Slide 2.1 so I can attach the correct
Http Client source code.

 

These are the properties of the bundled HttpClient

jakarta-slide-webdavclient-bin-2.1\lib\commons-httpclient.jar Size = 216
KB (221,761 bytes) Size on disk = 220 KB (225,280 bytes)

 

I have downloaded and compared with 2.0.2 and 3.0. They don't match:

 

commons-httpclient-2.0.2\commons-httpclient-2.0.2 Size = 220 KB (225,375
bytes) Size on disk = 224 KB (229,376 bytes)

commons-httpclient-3.0\commons-httpclient-3.0 Size = 272 KB (279,383
bytes) Size on disk = 276 KB (282,624 bytes)

 

So, if Slide 2.1 doesn't use HttpClient 2.0.2 or 3.0, which version does
it use? And how do I get a hold of the source code?

 

Keep up the good work (I'm a big fan of Slide!)

 

Jason

 

p.s. here is the test client code

 

          HttpURL hrl =

              new HttpURL("x.x.x.x", 8085, "/");

          hrl.setUserinfo("***","*****");

          WebdavResource wdr =

              new WebdavResource(hrl);

          File fn = new File("xdbconfig.xml");

          boolean getStatus = wdr.getMethod(fn);

          System.out.println("GET worked? = " + getStatus); <-- This
works

          fn = new File ("High level architecture.png");

          boolean putStatus = wdr.putMethod(fn); <-- I need to debug
this

          System.out.println("PUT worked? = " + putStatus); <-- This
doesn't work

          wdr.optionsMethod();

          Enumeration caps = wdr.getDavCapabilities();

          while (caps.hasMoreElements()) {

            System.out.println(caps.nextElement());

          }

          Enumeration allowedMethods = wdr.getAllowedMethods();

          while (allowedMethods.hasMoreElements()) {

            System.out.println(allowedMethods.nextElement());

          }

          wdr.close();