---
http_interactions:
- request:
method: get
uri: http://services.odata.org/V4/OData/OData.svc/$metadata
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Typhoeus - https://github.com/typhoeus/typhoeus
OData-Version:
- '4.0'
response:
status:
code: 200
message: OK
headers:
Cache-Control:
- no-cache
Content-Length:
- '6742'
Content-Type:
- application/xml;charset=utf-8
Server:
- Microsoft-IIS/8.0
X-Content-Type-Options:
- nosniff
OData-Version:
- 4.0;
X-AspNet-Version:
- 4.0.30319
X-Powered-By:
- ASP.NET
Access-Control-Allow-Origin:
- "*"
Access-Control-Allow-Methods:
- GET
Access-Control-Allow-Headers:
- Accept, Origin, Content-Type, MaxDataServiceVersion
Access-Control-Expose-Headers:
- DataServiceVersion
Date:
- Wed, 29 Nov 2017 20:59:10 GMT
body:
encoding: UTF-8
string:
http_version: '1.1'
adapter_metadata:
effective_url: http://services.odata.org/V4/OData/OData.svc/$metadata
recorded_at: Wed, 29 Nov 2017 20:59:11 GMT
- request:
method: post
uri: http://services.odata.org/V4/OData/OData.svc/Products
body:
encoding: UTF-8
string: |
WidgetJust a simple widget2017-11-29T20:59:09+00:0043.5
headers:
User-Agent:
- Typhoeus - https://github.com/typhoeus/typhoeus
Accept:
- application/atom+xml
Content-Type:
- application/atom+xml
response:
status:
code: 403
message: Forbidden
headers:
Cache-Control:
- private
Content-Length:
- '1254'
Content-Type:
- application/xml;charset=utf-8
Server:
- Microsoft-IIS/8.0
X-Content-Type-Options:
- nosniff
OData-Version:
- '4.0'
X-AspNet-Version:
- 4.0.30319
X-Powered-By:
- ASP.NET
Access-Control-Allow-Origin:
- "*"
Access-Control-Allow-Methods:
- GET
Access-Control-Allow-Headers:
- Accept, Origin, Content-Type, MaxDataServiceVersion
Access-Control-Expose-Headers:
- DataServiceVersion
Date:
- Wed, 29 Nov 2017 20:59:10 GMT
body:
encoding: UTF-8
string: |-
You are connected to a read-only data session. Update operations are not permitted for your sessionException has been thrown by the target of an invocation.System.Reflection.TargetInvocationException at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.OData.Service.UpdateTracker.FireNotifications()You are connected to a read-only data session. Update operations are not permitted for your sessionMicrosoft.OData.Service.DataServiceException at ODataWebExperimental.OData.ODataService.OnUpdateOperation(Object source, UpdateOperations action)
http_version: '1.1'
adapter_metadata:
effective_url: http://services.odata.org/V4/OData/OData.svc/Products
recorded_at: Wed, 29 Nov 2017 20:59:11 GMT
recorded_with: VCR 2.9.3