Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is this kind of URL called?

Tags:

http

url

http://admin:[email protected]/videostream.cgi

I didn't know that username and password could be set directly in the URL. How does this work? Is it standard? What search terms should I use to find out more about this?

like image 729
Alan Avatar asked Feb 27 '23 07:02

Alan


2 Answers

It's a standard way of providing login credentials in the URL so it doesn't have to prompt you for them.

admin is the username, 123456 is the password. The hostname is 192.168.1.178 as usual. You're connecting through the http protocol, so HTTP authentication is used here to access the script.

like image 114
BoltClock Avatar answered Mar 04 '23 06:03

BoltClock


It's the authority part of a URI scheme defined by RFC3986.

https://www.rfc-editor.org/rfc/rfc3986#section-3.2

like image 34
fseto Avatar answered Mar 04 '23 06:03

fseto