}
// 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!
$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',