2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

URI(URL)でユーザ名とパスワードを指定してログインしながらアクセス

Posted at

問題

画像のように,ログインが必要なサイトにアクセスしたいが,プログラム中などの理由でGUIは使えない.
スクリーンショット 2021-01-27 22.12.27.png

解決方法

URI(URL)に,ユーザ名とパスワードを仕込むことができます.
今回は,
http://192.168.10.1
ユーザ名:user
パスワード:pass
でアクセスしたいとします.

その場合,
http://user:pass@192.168.10.1と入力することで,アクセスができます.

僕の場合は,Axisのカメラにpythonからアクセスする際に使用しました.

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?