Hi tomcatters,
Im using user authentication on apache and I would like to make an
applet communicate with a servlet through http tunneling.

Here is a snippet of the code I use :

      dataURL = new
URL("http","myserver",80,"/myservlet?action=connect");
      connection = dataURL.openConnection();
      connection.setUseCaches(false);
      connection.setRequestProperty("header","value");
      jTextField1.setText(dataURL.toString());
      ObjectInputStream in = new
ObjectInputStream(connection.getInputStream());
      String value = (String) in.readObject();
      jTextField1.setText("Connection established, server says :" +
value + " .");
      in.close();

When I deactivate the authorization section, it works fine but with it I
always got a 401 in access.log

Anybody has ever tried to do similar things ?
Any help is welcome

Regis

Reply via email to