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:
20 Sep 2012 at 09:50 UTC
Updated:
27 Oct 2013 at 22:33 UTC
Jump to comment: Most recent file
Comments
Comment #1
johnennew commentedThe following patch stops the string being passed to drupal_http_build_query on a POST request if it is already a string. This should not break any implementations that assume this can be an array.
Comment #2
dariogcode commentedAlso in line 154 script assumes "data" is an string, not an array.
Comment #3
gambaweb commentedto be compatible with drupal_http_request the data when using POST should come as a query string
http://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_http_request/7
the attached patch fixes chr to be compatible with that.
Comment #4
Taz commentedThe patch in #3 is still valid and good.
Very simple fix to bring this module in-line with what drupal_http_request() expects.
Comment #5
minoroffense commentedI've committed the change to the 7.x-1.x branch. It's a rather big rewrite so I manually applied the change but still gave you the attribution.
I've also done the same change for PUT requests.
Next is to port to 6.x
Comment #6
minoroffense commentedComment #7
minoroffense commented