Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Can I make the AppletViewer login to my web server?

 
Greenhorn
Posts: 7
Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since I did not get an answer to this question:
https://coderanch.com/t/559543/Applets/java/do-control-Java-Login-prompt

I am now wondering if I can by pass the browser altogether. I would like to use the AppletViewer to "run" the applet. I see that the AppletViewer can take a URL, but the HTTP server on our hardware is expecting basic authentication. As I understand this if I make a request to http://deviceName/index.html I will get a 401 response. If I am in a browser, it will then open a dialog for me to type my username and password into. I am open to either the appletviewer opening a similar dialog, or to putting the user name and password into a file (policy file?) so that the user will simply connect to the HTTP server, download the applet and have it run.

Is this possible? Are there "java options" that I can pass to do this? There does not seem to be anything about this in the AppletViewer documentation.

Pat O
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic