Needs work
Project:
Rules HTTP Client
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2015 at 09:16 UTC
Updated:
29 Mar 2019 at 05:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
strainyy commentedComment #2
strainyy commentedAttached is a patch that essentially removes the formatting restriction imposed on the user and lets them manage the request body as they see fit.
Comment #3
strainyy commentedComment #4
decipheredI worked on this before noticing this issue, but have implemented a solution that is compatible with your needs anyway. Essentially it just adds a 'data_encoding' selection, which can be Default (drupal_http_build_query) / JSON (json_encode) / None/Raw (as per your patch).
Not committing straight away as I'd like it tested, especially given that there is no upgrade path (nor is there in yours).
Comment #5
twistor commentedThis should use drupal_json_encode().
Comment #6
jsibley commentedThis worked well for me, so far (just started trying it).
I could not figure out how to send a POST with json body that would work, as the syntax expected by the original module is poorly documented.
However, I could copy and paste json that worked in Postman, using the raw option provided by this patch, and it worked.
Thank you!
Comment #7
sano commentedI can confirm @jsibley's observation.