Patch (to be ported)
Project:
cURL HTTP Request
Version:
8.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2013 at 06:08 UTC
Updated:
27 Oct 2013 at 22:32 UTC
The block of code specifying the content-length header appears to have been copied from the drupal_http_request function. I don't think this block of code is necessary in chr because curl should add that header to the request automatically if it is needed (POST/PUT).
For me our proxy (mcafee web gateway) wouldn't accept requests over https unless I removed this header.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| chr-dont-specify-content-length.patch | 1.32 KB | drasgardian |
Comments
Comment #1
minoroffense commentedWith the patch applied do the content length headers get added when required?
Comment #2
minoroffense commentedTested and it works.
http://drupalcode.org/project/chr.git/commit/47af538
Comment #3
minoroffense commented