Jump to content


New Member
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Dreza

  • Rank
    Junior Member
  1. I am trying to send a post request in my dev environment to the staging API of an external company. I have tried sending POST requests to a completely different URL and it doesn't work either. So my question is, does WHMCS Dev not allow sending of POST requests and if it does can someone help me figure out why it is not working. Below is an example of how I have been trying to send the curl post request. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_json); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: $apikey", "content-type: application/json", "Accept: application/json" ]); $curl_data = curl_exec($ch); I also wanted to note that there is no problem with sending GET requests.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated