Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

connect to a URL using Basic authentication

Hi,
I am trying below example
http://www.avajava.com/tutorials/lessons/how-do-i-connect-to-a-url-using-basic-authentication.html?page=1

I was not able to get to linksys screen. How to fix the issue.
please advise
Any links resources ideas highly appreciated. Thanks in advance
0
gudii9
Asked:
gudii9
  • 7
  • 6
1 Solution
 
CPColinSenior Java ArchitectCommented:
This question may be silly, but do you have a Linksys router and is it running its web interface at http://192.168.1.1? If not, it's not surprising you couldn't see that screen.
0
 
gudii9Author Commented:
I have Linksys router. How to find web interface URL like http://192.168.1.1 for that?
Please advise.
0
 
CPColinSenior Java ArchitectCommented:
If navigating to that URL times out, then your router is not listening at that IP address. You'll have to consult the manual for your router for more information. If you can't use that URL, you should be able to find an example URL that uses basic authentication by searching around on the web.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
gudii9Author Commented:
If you can't use that URL, you should be able to find an example URL that uses basic authentication by searching around on the web

which URL I can use. Please advise
0
 
CPColinSenior Java ArchitectCommented:
Using your favorite search engine, searching around for things like "basic authentication example" should get you what you're looking for.
0
 
gudii9Author Commented:
when i search 'basic authentication example java'

I see lot of links. I am looking for simple java application without any servlet or web application, ejb etc which i could not find yet.


https://www.google.com/search?q=basic+authentication+example&rls=com.microsoft:en-us&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1#q=basic+authentication+example+java&rls=com.microsoft:en-us


Please advise
0
 
CPColinSenior Java ArchitectCommented:
Maybe "basic authentication example" was a bad set of terms. I searched for "basic authentication test" and found several good test URL's within the first couple of results.
0
 
gudii9Author Commented:
https://www.google.com/#q=basic+authentication+test

I searched in google as above. I do not see any simple straight forward example there. Please advise
0
 
CPColinSenior Java ArchitectCommented:
The very first page listed includes an example URL that you can use to practice: http://browserspy.dk/password-ok.php
0
 
gudii9Author Commented:
I will try from home below link and let you know

http://browserspy.dk/password.php

You must use the following login information to login into the page password-ok.php
Username test
Password test

so i just need to go to that page
and enter username, pasword as test, test
That will basically Find out if my browser supports HTTP Basic Authentication also known as password protection right?
0
 
CPColinSenior Java ArchitectCommented:
Yes.
0
 
gudii9Author Commented:
Is it is server that is supposed to support the basic authentication or the browser. please advise
0
 
CPColinSenior Java ArchitectCommented:
The server tells the client that authentication is required. The client asks the user for credentials, then sends them to the server. The server responds by either allowing the request to go through or giving an error code that says the user is not authorized.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now