How to find out what is the area and uri of the site

I want to use python urllib2 with authentication and I need scope and uri url. How do I get it?

thank

+2


source to share


1 answer


When you make a request for a resource that requires authentication, the server will respond with a 401 status code and a header that contains the scope:

WWW-Authenticate: Basic realm="the realm"

      



The URI is the URL you are trying to access.

+1


source







All Articles