0
3

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.

RESTなAPIでBasic認証

Posted at

WebIOPiでBASIC認証してAPIにアクセスしたかったのでメモ

Authorization:Basic の追加

SnapCrab_NoName_2020-5-27_20-52-26_No-00.png

Base64にエンコードしたBASIC認証のUserとPassをxxxxxxに記載

Authorization:Basic xxxxxx

例)

userとpasswordをコロンでつないでBase64でエンコードすると

admin:pass -> YWRtaW46cGFzcw==

Authorization:Basic YWRtaW46cGFzcw==

参考サイト

Hitachi Command Suite REST APIリファレンスガイド
http://itdoc.hitachi.co.jp/manuals/3021/3021901610/HCSR0050.HTM

Basic認証のあるページにユーザ名とパスワードを書いたURLでブラウザからアクセスしました。
https://qiita.com/pugiemonn/items/a9787ed3063487498e82

Rest APIでBasic認証する方法を教えてください
https://smartdb.support-dreamarts.com/hc/ja/articles/360033375011-Rest-API%E3%81%A7Basic%E8%AA%8D%E8%A8%BC%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%82%92%E6%95%99%E3%81%88%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84

0
3
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
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?