can any one help in URL......

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: can any one help in URL......

  1. #1
    Join Date
    Mar 2005

    can any one help in URL......

    Hi Guys,
    I need help in solving a problem.I need java program for Authenticated or passowrd protected URL execution. I ma using URL and URLConnection class but they are not at all helping to slove it. here the example:
    the link or host name is: http://test2/dcs( when u type this in browser it will prompt a windows for username and password after giving username and password it will give some console there u can create or add user details and submit to the server but all this happen using browser BUT I need a java progrmme where it reads user details from a text file and it need to send it to server)
    i made connection by URL urlobj=new URL("http://usernameassword@test2/dcs") here I am sending my username and password but it sis giving I/O exception 401 authentication error. even if it is success I mean after getting connection i need to send send data like this.
    http://test2/dcs?username=abc&usertype=emp&emailid=......... like which is send it through web browser. So can any one help me in this one?
    Thanks alot guys

  2. #2
    Join Date
    Jul 2005
    SW MO, USA
    I'm a little confused about your application.
    Could you explain it a little more?
    What kind of server is it? What is the protocol used for passing a userid and password?
    Are you using a java applet or Javascript in the HTML?
    Where is the text file that is being read and sent to the server? For an applet to read files from a client, it needs Permission either by being signed or by the policy file.

Similar Threads

  1. Encypting a URL
    By John Butler in forum ASP.NET
    Replies: 0
    Last Post: 11-26-2002, 03:53 PM
  2. Replies: 0
    Last Post: 07-31-2002, 05:17 PM
  3. Caching the URL
    By gvt in forum VB Classic
    Replies: 0
    Last Post: 02-07-2001, 08:47 AM
  4. Caching the URL
    By gvt in forum VB Classic
    Replies: 0
    Last Post: 02-07-2001, 08:47 AM
  5. accessing IE 5 URL from VB
    By stephen in forum Web
    Replies: 0
    Last Post: 08-07-2000, 12:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center