PHP-API-Problem
🌐 Aus dem Türkçe übersetzt
bedavasms
Kayıtlı Üye
21.10.2014 23:34
1
Hallo, ich kann keine SMS versenden. Schauen Sie sich die Codes an. Es gibt ein Problem. Denn wenn Sie den Benutzernamen, das Passwort oder andere Informationen nicht eingeben, wird ein unvollständiger Fehler angezeigt. Wenn Sie jedoch alle eingeben, wird angezeigt, dass der Status nicht erkannt werden konnte.
$ka = "kadi";
$pw = "Passwort";
$no="5087882723";
$message="testmessage";
$sb='';
$postfields = "ka=$ka&sf=$sf&gn=$no&sm=$message&sb=";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.yoncu.com/apiler/sms/gonder.php");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (kompatibel; MSIE 5.01; Windows NT 5.0)');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
$ka = "kadi";
$pw = "Passwort";
$no="5087882723";
$message="testmessage";
$sb='';
$postfields = "ka=$ka&sf=$sf&gn=$no&sm=$message&sb=";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.yoncu.com/apiler/sms/gonder.php");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (kompatibel; MSIE 5.01; Windows NT 5.0)');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
🌐 Aus dem Türkçe übersetzt
Melden Sie sich an, um eine Antwort zu schreiben
Sie müssen sich anmelden, um eine Antwort auf dieses Thema zu verfassen.
Mitglieder-LoginAn der Diskussion teilnehmen
Melden Sie sich an oder registrieren Sie sich, um ein neues Thema zu eröffnen oder zu antworten.
Tipp des Tages
ÄNDERN
Der Layer-7-DDoS-Schutz umfasst eine hochentwickelte JS-Verifizierungs-Engine zur Filterung von Bot-Traffic.
TIPP 1/4