I found the error. I had to point to a subdirectory. The commandline client is working.
Now I'd like to write my own client:
try {
           HttpURL hrl = new HttpURL("http://192.168.0.1/pages/";);
           hrl.setUserinfo("user","pwd");
           WebdavResource wdr = new WebdavResource(hrl);
           File fn = new File("314Test.txt");
           wdr.getMethod(fn);
           wdr.close();

        }
        catch(MalformedURLException mue) {
          out.println("Malformed URL Fehler "+mue);
        }
        catch(HttpException he){
          out.println("Http Fehler "+he);
        }
        catch(IOException ioe){
          out.println("IO Fehler "+ioe);
        }

But it can't connect.
java.net.ConnectException: Connection timed out: connect

Whats wrong in my code? Do I have to open some specific ports on the firewall except 80?

Thanks Michael

Michael Arnold wrote:

Hi
When I try to open a http url with the command line client I get the following error:
connect http://192.168.0.1
Fatal Error: null
java.lang.NullPointerException
....

ccording to the docs I have to type open http-url
Please help
Thanks Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Michael Arnold

SISAG
Seilbahnen und industr.
Sicherheitstechnik              Tel.: +41 41 875 07 11
Postfach                        Fax.: +41 41 875 07 12
CH - 6460 Altdorf               http://www.sisag.ch/sismedia
Switzerland                     mailto:[EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to