Needs work
Project:
Http Client
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2016 at 11:03 UTC
Updated:
14 Oct 2020 at 23:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
boyan.borisov commentedThe patch that I've created fix the problem by checking $content_length > 0 explicitly.
Comment #3
john franklin commentedWithout the
CURLOPT_POSTFIELDSor something else to set the "Content-Length:" header, any POST and PUT requests with empty bodies would be malformed. POST and PUT *require* a "Content-Length" header, even if it's zero.I think something may be up with your servers.