             body.appendData(imageEndEncoding)
             body.appendData(boundaryEnd)
 
+            request.timeout = kDefaultTimeOut
+
             request.sendData(body, completionHandler: { (response, error) -> Void in
 
                 //failure

        let requestURL = getBluemixBaseRequestURL() + "/" + kPingEndPoint

        let request = Request(url: requestURL, method: HttpMethod.GET)

        request.sendWithCompletionHandler { (response, error) -> Void in
            callback(response: response, error: error)


        let requestURL = getBluemixBaseRequestURL() + "/" + kTagsEndPoint
        let request = Request(url: requestURL, method: HttpMethod.GET)

        request.timeout = kDefaultTimeOut

        request.sendWithCompletionHandler { (response, error) -> Void in
            if let error = error {
