Jump to content

Error in WireHttp: RAW data with CURL not supported for PATCH


horst
 Share

Recommended Posts

Hi,

I get this error message when trying to communicate with a mailchimp server:

Exception: Raw data option with CURL not supported for PATCH (in .../wire/core/WireHttp.php line 670) 

This will be triggered from this code:

            $http = new WireHttp();
            $http->setHeaders([
                'Content-Type' => 'application/json',
                'Authorization' => 'Basic '.base64_encode('user:'.$this->api_key),
            ]);

            $response = $http->send($api . '/' . md5($email), json_encode($param), 'PATCH');

Can somebody tell me what this mean and how I can avoid it?

OR: On other servers I use the same module / code without any errors. How can I find out what is differend here?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...