Skip to content

Instantly share code, notes, and snippets.

@lunaluna
Last active March 30, 2020 02:16
Show Gist options
  • Save lunaluna/2254c20b4dc6df6a11ca03e687a3d4a8 to your computer and use it in GitHub Desktop.
Save lunaluna/2254c20b4dc6df6a11ca03e687a3d4a8 to your computer and use it in GitHub Desktop.
Basic認証のあるページにURLだけで直接アクセス

ユーザー名とパスワードを一緒に入力してアクセス

https://{{user}}:{{password}}@example.com/

ユーザー名がメアドだった場合(あるいはパスワードに @ が含まれていた場合)

@ をURLエンコード( %40 )する

【以下のユーザー・パスワードだった場合】
ユーザー: mail@example.com
パスワード: P@ssw0rd!
https://mail%40example.com:P%40ssw0rd!@example.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment