How to include authorization in http link?

时间:2017-02-08 10:43:26

标签: google-chrome http http-headers http-live-streaming ip-camera

I have a live stream that you can access via ip example: 123.123.123.123:1234/video

On opening directly you are prompted for credentials.

Now i want to embed this on my website.

<img src="http://admin:examplepass@123.123.123.123:1234/video" />

wont work. After reading https://en.wikipedia.org/wiki/Basic_access_authentication

我尝试编码&#39; admin:examplepass&#39;但是你会得到像

这样的东西
<img src="http://QWxhZGRpbjpPcGVuU2VzYW1l@123.123.123.123:1234/video" />

哪个不起作用。我在这里失去了,有人能指出我正确的方向吗?

0 个答案:

没有答案