karatelabs / karate

Test Automation Made Simple
https://karatelabs.github.io/karate
MIT License
8.33k stars 1.95k forks source link

Removing Content-Length header for GET call #2299

Closed jo-he-cityzen closed 1 year ago

jo-he-cityzen commented 1 year ago

Request for solution to remove the Content-Length header for GET call. As part of our scenario execution, the API GET call is successfully executing if we exclude the Content-Length header key but could not able to remove the Content-Length header from Karate framework. Kindly suggest solution.

ptrthomas commented 1 year ago

@jo-he-cityzen sorry I'm closing this as a wont fix. no one has ever reported this in 6 years - so I have a feeling this is is an actual bug in your server. you or anyone else is welcome to contribute code and submit a PR against this ticket

you can see if switching to some custom htto client or curl can be a workaround, refer: https://stackoverflow.com/q/73227903