         
         
         let finalRequest = request.copy() as NSURLRequest
-        var sessionTask = urlSession.dataTaskWithRequest(finalRequest, completionHandler: {(data: NSData!, response : NSURLResponse!, error: NSError!) -> Void in
+        let sessionTask = urlSession.dataTaskWithRequest(finalRequest, completionHandler: {(data: NSData!, response : NSURLResponse!, error: NSError!) -> Void in
             handler(response,data,error)
         })
         sessionTask.resume()

    
    func dataForURL(url : NSURL, completionHandler handler: dataForURLCompletionClosure) {
        var request = NSURLRequest(URL:url)
        var urlSession = NSURLSession(configuration:sessionConfiguration, delegate: nil, delegateQueue: queue)
        
        var sessionTask = urlSession.dataTaskWithRequest(request, completionHandler: {(data: NSData!, response : NSURLResponse!, error: NSError!) -> Void in
            handler(response,data,error)
        })
        sessionTask.resume()
    }
    
    func dataForRequest(request : NSURLRequest!, completionHandler handler: dataForURLCompletionClosure) {
        var urlSession = NSURLSession(configuration:sessionConfiguration, delegate: nil, delegateQueue: queue)
        
        let finalRequest = request.copy() as NSURLRequest
        var sessionTask = urlSession.dataTaskWithRequest(finalRequest, completionHandler: {(data: NSData!, response : NSURLResponse!, error: NSError!) -> Void in
            handler(response,data,error)
        })
        sessionTask.resume()
    }
    
    func dataForURL(url : NSURL, postData: NSData, completionHandler handler: dataForURLCompletionClosure) {
        var request = NSMutableURLRequest(URL:url)
        var urlSession = NSURLSession(configuration:sessionConfiguration, delegate: nil, delegateQueue: queue)
        request.HTTPMethod = "POST"
        
        if(postData.length != 0){

    
    func stringForURL(url : NSURL, completionHandler handler: stringForURLCompletionClosure) {
        dataForURL(url, completionHandler: {(response : NSURLResponse!, data: NSData!, error: NSError!) -> Void in
            let responseString = NSString(data: data, encoding: NSUTF8StringEncoding)
            handler(response,responseString,error)
        })
    }
