Unable to do VS recording using CURL with Expect:100-Continue
search cancel

Unable to do VS recording using CURL with Expect:100-Continue

book

Article ID: 130863

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder)

Issue/Introduction

Sometimes when doing a VS recording using Curl with Expect:100-Continue headers, recorder do not capture any transactions.

Environment

Supported DevTest environments.

Cause

CURL automatically adds an Expect: 100-Continue header if the payload is bigger than 1024 bytes which is causing the issue.

Resolution

Explicitly disabling the Expect:100-Continue header as below in the CURL command should resolved the issue. 
curl -H 'Expect:' 

Additional Information

The link https://gms.tf/when-curl-sends-100-continue.html provide information on enabling/disabling Expect headers.