#1 (permalink) Wed Jan 20, 2010 21:02 pm response array (id 238) |
|
|
Sending SMS through HTTP - Submitting an HTTP-Request You first need to submit a request via file(). Please use the @ sign to avoid any errors. Otherwise your gateway key will be shown unencrypted in an error message if there is no connection to the gateway.
At the same time the response gets logged in the $"."response array. Now you can see through error codes whether or not the SMS has been sent successfully or not.
Original German text: SMS über HTTP versenden - Erstellen des HTTP-Requests Zunächst wird der Request via file() abgesetzt. Das @ sollte unbedingt angewendet werden um die Fehlerausgabe zu unterdrücken. Ansonsten wird Ihr Gateway Key unverschlüsselt in der Fehlermeldung angezeigt wenn es mal zu keiner Verbindung zum Gateway kommen sollte.
Gleichzeitig wird die Rückgabe im $"."response Array gespeichert. Jetzt kann man über die Fehlercodes auslesen ob die SMS erfolgreich versendet wurde oder nicht.
TOEIC listening, talks: Advertising an inflatable plane seat |
|
Torsten Learning Coach

Joined: 25 Sep 2003 Posts: 15008 Location: EU
|