Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想向一个 url 发出一个 get 请求,所以我使用 Typhoeus gem。
代码示例:
request = Typhoeus::Request.get("https://url.com", userpwd: "user\name:pass#rd") puts request.code
但我总是收到代码 401。为什么?当我将 url 放入浏览器并插入域用户名和密码时。