             components.append(request.HTTPMethod!)
         }
         
-        components.append(request.URL.absoluteString!)
+        components.append(request.URL!.absoluteString!)
         
         if response != nil {
             components.append("(\(response!.statusCode))")

        }
        
        if let cookieStorage = session.configuration.HTTPCookieStorage {
            if let cookies = cookieStorage.cookiesForURL(URL) as? [NSHTTPCookie] {
                if !cookies.isEmpty {
                    let string = cookies.reduce(""){ $0 + "\($1.name)=\($1.value ?? String());" }
                    components.append("-b \"\(string.substringToIndex(string.endIndex.predecessor()))\"")

    }
    
    class DownloadTaskDelegate: TaskDelegate, NSURLSessionDownloadDelegate {
        var downloadTask: NSURLSessionDownloadTask! { return task as! NSURLSessionDownloadTask }
        var downloadProgress: ((Int64, Int64, Int64) -> Void)?
        
        var resumeData: NSData?
