• Hello,
    I’ve downloaded the plugin to post the contact form 7 user values to an API.
    The header seems to have the error, as it is not passing the Basic auth key as header.
    Can you please help me with why is it not functioning as expected?
    Thanks,
    Anuja S.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter anujas

    (@anujas)

    Hello,
    I would really appreciate it if you can please provide some guidance on your plugin functionality.
    All I am trying to achieve is submit Contact Form values to an API with Basic Auth.
    Entered all the fields as explained in your Plugin document, why isn’t the basic Auth passing in the header?
    I can see from the server response,
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
    Can you please help?
    Thanks,
    Anuja

    The source is missing the if statement to add the required data to the header.

    
      if ( isset($basic_auth) && $basic_auth !== '' ) {
            $args['headers']['Authorization'] = 'Basic ' . base64_encode( $basic_auth );
          }
    

    Around line ~560.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Basic auth not being passed as Header’ is closed to new replies.