---
http_interactions:
- request:
method: post
uri: http://admin:passwd@win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories
body:
encoding: ASCII-8BIT
string: ! '{"Name":"Auth Test Category","AuditFields":{"CreatedBy":"Machinist"}}'
headers:
Accept:
- ! '*/*; q=0.5, application/xml'
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- '69'
User-Agent:
- Ruby
response:
status:
code: 201
message: Created
headers:
Cache-Control:
- no-cache
Content-Length:
- '1278'
Content-Type:
- application/atom+xml;type=entry;charset=utf-8
Location:
- http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)
Server:
- Microsoft-IIS/7.5
Set-Cookie:
- ASP.NET_SessionId=b5h3vo0kbga5mdcgu2nfisos; path=/; HttpOnly
X-Content-Type-Options:
- nosniff
Dataserviceversion:
- 1.0;
X-Aspnet-Version:
- 4.0.30319
X-Powered-By:
- ASP.NET
Date:
- Tue, 07 Aug 2012 21:21:24 GMT
body:
encoding: US-ASCII
string: http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)2012-08-07T21:21:25Z1Auth
Test Category2012-08-07T21:21:25.296875Z2012-08-07T21:21:25.296875ZMachinist
http_version: !!null
recorded_at: Tue, 07 Aug 2012 21:21:25 GMT
- request:
method: get
uri: http://admin:passwd@win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- ! '*/*; q=0.5, application/xml'
Accept-Encoding:
- gzip, deflate
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- no-cache
Content-Length:
- '1270'
Content-Type:
- application/atom+xml;type=entry;charset=utf-8
Server:
- Microsoft-IIS/7.5
Set-Cookie:
- ASP.NET_SessionId=vqh02cwip2bvnmgt4smeb5ok; path=/; HttpOnly
X-Content-Type-Options:
- nosniff
Dataserviceversion:
- 1.0;
X-Aspnet-Version:
- 4.0.30319
X-Powered-By:
- ASP.NET
Date:
- Tue, 07 Aug 2012 21:21:24 GMT
body:
encoding: US-ASCII
string: http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)2012-08-07T21:21:25Z1Auth
Test Category2012-08-07T21:21:25.2972012-08-07T21:21:25.297Machinist
http_version: !!null
recorded_at: Tue, 07 Aug 2012 21:21:25 GMT
- request:
method: get
uri: http://admin:bad_pwd@win7dev:8989/SampleService/BasicAuth/RubyOData.svc/$metadata
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- ! '*/*; q=0.5, application/xml'
Accept-Encoding:
- gzip, deflate
User-Agent:
- Ruby
response:
status:
code: 401
message: Unauthorized
headers:
Content-Type:
- text/html
Server:
- Microsoft-IIS/7.5
Www-Authenticate:
- Basic
X-Powered-By:
- ASP.NET
Date:
- Tue, 07 Aug 2012 21:21:24 GMT
Content-Length:
- '1218'
body:
encoding: US-ASCII
string: ! "\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n\r\n"
http_version: !!null
recorded_at: Tue, 07 Aug 2012 21:21:25 GMT
- request:
method: get
uri: http://admin:passwd@win7dev:8989/SampleService/BasicAuth/RubyOData.svc/$metadata
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- ! '*/*; q=0.5, application/xml'
Accept-Encoding:
- gzip, deflate
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- no-cache
Content-Length:
- '4055'
Content-Type:
- application/xml;charset=utf-8
Server:
- Microsoft-IIS/7.5
Set-Cookie:
- ASP.NET_SessionId=qdj1en0bcagvrdhule4xjvxg; path=/; HttpOnly
X-Content-Type-Options:
- nosniff
Dataserviceversion:
- 1.0;
X-Aspnet-Version:
- 4.0.30319
X-Powered-By:
- ASP.NET
Date:
- Tue, 07 Aug 2012 21:21:24 GMT
body:
encoding: US-ASCII
string: \r\n
\r\n
\r\n\r\n\r\n"
http_version: !!null
recorded_at: Tue, 07 Aug 2012 21:21:25 GMT
recorded_with: VCR 2.2.4