• Resolved zoeysteel

    (@zoeysteel)


    Hi,
    Is it possible to use this plugin to send a curl request using an action hook from a form (with Formidable form plugin). My attempts so far have resulted in the snippet being deactivated “due to a fatal error”, and no error is being logged even with the error log setting switched on. Just want to make sure it’s possible to do what I need to, so I know that it’s my code causing the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @zoeysteel,

    You should be able to send a cURL request using a snippet but you might better off using WordPress-specific request functions like wp_remote_request.

    If you want to share the code of your snippet privately please reach out using the form at https://wpcode.com/contact and we’ll try to point you in the right direction.

    Thread Starter zoeysteel

    (@zoeysteel)

    Thanks, that sounds great. I tried wp_remote_request first but couldn’t get any result. I may reach out, but either way it’s good to know that the plugin supports it and must just be my bad code ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sending API request with curl’ is closed to new replies.