What are those URL's that are starting with // - that you can see within Google+ html source?
Asked Answered
C

1

6

Hi can somebody please explain what are the URL's that we can see at Google+ HTML source code that look like <img src="//lh5.googleusercontent.com/--kKi9nRc78s/AAAAAAAAAAI/AAAAAAAAAC8/w1PSeKZtt7I/photo.jpg?sz=48" alt="" />

Is it a shortcut for http:// ?

What browsers understand it in this case, where can I find more information on this, please ?

Thanks in advance!

Conjugal answered 11/7, 2011 at 20:44 Comment(1)
possible duplicate of What is the effect of starting a url with "//", and leaving out "http:"Giorgio
H
10

It's a scheme-relative URL. You see this often on websites/pages which can be served over both http and https. If the image pointed to a http resource and the page itself was served over https, you would otherwise see an annoying browser warning that unsecured content is been served, something like this:

enter image description here

Hannah answered 11/7, 2011 at 20:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.