Hi, I don�t know exactly where your error is but here is a code snippet that works for me :
Bye, Mark String ServerPath = "http://localhost:8080/slide/files/abc.txt"; org.apache.webdav.lib.WebdavResource resource = null; org.apache.commons.httpclient.HttpURL url1 = new org.apache.commons.httpclient.HttpURL("admin", "admin", "localhost", 8080, "/slide/files"); resource = new org.apache.webdav.lib.WebdavResource(url1); resource.putMethod(ServerPath, "abc"); resource.close(); > Hi Friends, > > I am new this group...i don't the exact work flow....i would like to > connect to server from client...but i am getting this error... > > May 9, 2005 5:34:13 PM org.apache.commons.httpclient.HttpMethodDirector > isRedire > ctNeeded > INFO: Redirect requested but followRedirects is disabled > org.apache.commons.httpclient.HttpException > at > org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.ja > va:3467) > at > org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.ja > va:3423) > at > org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java > :967) > at > org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResourc > e.java:912) > at > org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.jav > a:1894) > at > org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1 > 301) > at > org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1 > 320) > at > org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1 > 408) > at > org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:290) > at SlideTest.main(SlideTest.java:19) > > > what is the problem....how can i solve this problem....what is the error i > wrote in this code... > > WebdavResource container = null; > HttpURL hrl = new HttpURL("http://localhost:99/slide/files"); > hrl.setUserinfo("tomcat","tomcat"); > WebdavResource wdr = new WebdavResource(hrl); > container = new WebdavResource(hrl); > if (container == null) > { > throw new Exception("Container WebdavResource is > null!"); > } > container.putMethod("/slide/files/hello.txt", "Hello > world\n"); > > container.close(); > > > Plz help me.... > > thanks for ur helping.. > Srinivas > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail - You care about security. So do we. -- +++ Neu: Echte DSL-Flatrates von GMX - Surfen ohne Limits +++ Always online ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
