 		config.HTTPShouldUsePipelining = true
 		config.timeoutIntervalForResource = NETWORK_TIMEOUT
 		config.timeoutIntervalForRequest = NETWORK_TIMEOUT
+		config.HTTPAdditionalHeaders = ["User-Agent" : userAgent]
 		urlSession = NSURLSession(configuration: config)
 
 		if fileManager.fileExistsAtPath(cacheDirectory) {

		failure:((response: NSHTTPURLResponse?, error: NSError?)->Void)?) {

			#if os(iOS)
			dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (Int64)(0.1 * Double(NSEC_PER_SEC))), dispatch_get_main_queue()) {
				self.networkIndicationStart()
			}
			#endif

			let r = NSMutableURLRequest(URL: url, cachePolicy: NSURLRequestCachePolicy.UseProtocolCachePolicy, timeoutInterval: NETWORK_TIMEOUT)
			r.setValue(userAgent(), forHTTPHeaderField: "User-Agent")

			let task = urlSession.dataTaskWithRequest(r) { (data, res, e) in

				let response = res as? NSHTTPURLResponse
				var error = e

			}.resume()
	}

	#if os(iOS)
	func networkIndicationStart() {
		dispatch_async(dispatch_get_main_queue(), {
