]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/wernis_functions.php
Mailer project rwritten:
[mailer.git] / inc / libs / wernis_functions.php
index 513d455dbb43fbe54930d558495fb4621869605e..ad52d9d6c011eff93d8c8b20e6bb4470ae5e67a9 100644 (file)
@@ -72,7 +72,7 @@ function GET_WERNIS_ERROR_CODE () {
 }
 
 // Sends out a request to the API and returns it's result
-function WERNIS_SEND_REQUEST ($scriptName, $requestData =  array()) {
+function WERNIS_SEND_REQUEST ($scriptName, $requestData = array()) {
        // Is the requestData an array?
        if (!is_array($requestData)) {
                // Then abort here!
@@ -108,10 +108,10 @@ function WERNIS_SEND_REQUEST ($scriptName, $requestData =  array()) {
        $requestString = getWernisApiUrl() . $scriptName;
 
        // Get the raw response from the lower function
-       $response = sendPostRequest($requestString, $requestData);
+       $response = sendHttpPostRequest($requestString, $requestData);
 
        // Check the response header if all is fine
-       if (!isInString('200', $response[0])) {
+       if (!isHttpStatusOkay($response[0])) {
                // Something bad happend... :(
                return array(
                        'status'  => 'request_error',