Sha256: b11b3021cd676bdf27745be297432378d45cb27d2cc1f90f154161dda6d9eb17

Contents?: true

Size: 1.82 KB

Versions: 2

Compression:

Stored size: 1.82 KB

Contents

---
http_interactions:
- request:
    method: get
    uri: https://httpbin.org/basic-auth/user/pass
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept:
      - "*/*"
      User-Agent:
      - rest-man/1.0.0 (darwin21 arm64) ruby/2.7.6p219
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Host:
      - httpbin.org
      Authorization:
      - Basic dXNlcjpwYXNz
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Mon, 30 May 2022 12:36:21 GMT
      Content-Type:
      - application/json
      Content-Length:
      - '47'
      Connection:
      - keep-alive
      Server:
      - gunicorn/19.9.0
      Access-Control-Allow-Origin:
      - "*"
      Access-Control-Allow-Credentials:
      - 'true'
    body:
      encoding: UTF-8
      string: "{\n  \"authenticated\": true, \n  \"user\": \"user\"\n}\n"
  recorded_at: Mon, 30 May 2022 12:36:21 GMT
- request:
    method: get
    uri: https://httpbin.org/basic-auth/user/pass
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept:
      - "*/*"
      User-Agent:
      - rest-man/1.0.0 (darwin21 arm64) ruby/2.7.6p219
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Host:
      - httpbin.org
      Authorization:
      - Basic dXNlcjpiYWRwYXNz
  response:
    status:
      code: 401
      message: UNAUTHORIZED
    headers:
      Date:
      - Mon, 30 May 2022 12:36:22 GMT
      Content-Length:
      - '0'
      Connection:
      - keep-alive
      Server:
      - gunicorn/19.9.0
      Www-Authenticate:
      - Basic realm="Fake Realm"
      Access-Control-Allow-Origin:
      - "*"
      Access-Control-Allow-Credentials:
      - 'true'
    body:
      encoding: UTF-8
      string: ''
  recorded_at: Mon, 30 May 2022 12:36:22 GMT
recorded_with: VCR 6.1.0

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rest-man-1.1.0 spec/cassettes/request_httpbin_with_basic_auth.yml
rest-man-1.0.0 spec/cassettes/request_httpbin_with_basic_auth.yml