Hallo,
wie kann ich mit CURL "automatisch" ein Formular absenden und die Post-Daten übergeben. Wenn ich es wie folgt mache, bekomme ich keinen Error, aber auch keine Response. Wenn ich das Formular "normal" über manuell absende, gelange ich zu der URL und die Post-Daten werden entsprechend übermittelt.
curl_setopt($ch, CURLOPT_URL, $this->url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$return = curl_exec($ch);