Rest-Client 如何做 Basic Authentication 驗證
📝
内容提要
一個很有趣的 trick 如果我要傳 Basic Auth 給 server 的話,需要把 user/password 加到 authorization 上。 以 postman 來說是這樣 但在這個情況下不要直接用 RestClient.get post/ put # 這樣做是「無效」的: RestClient.get url, user: 'username', password:...
🏷️
标签
➡️