Problem/Motivation

Steps to reproduce

  1. Add a rule to fetch a page via HTTP GET from https://www.calcmaster.net/
  2. Leave the Data blank
  3. Execute the rule
  4. Response will be 403 because the plugin sent a '[]' to represent no data, however, this requires a Content-Length header that isn't included.

Proposed resolution

Check if there is any data to provide in the HTTP body, and set $options['data'] and $options['body'] to empty-length strings if there is none.

Remaining tasks

  1. Submit a patch and pull request

User interface changes

  • n/a

API changes

  • n/a

Data model changes

  • n/a
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

josephcmiller2 created an issue.