         #endif
         request.setUserAgent(useragent)
         
-        // TODO: referer host
+        // Referer host
+        request.setRefererHost(serviceToken.getEndpointName()!)
         
         // Content Type - Extract from the service configuration
         request.setContentType(IOParser.sharedInstance.getContentType(serviceToken))
         
-        if let info:Header = headers[serviceToken.getEndpointName()!] {
+        // Headers
+        /*if let info:Header = headers[serviceToken.getEndpointName()!] {
             
             // There is previous information of this endpoint
             request.setServiceHeaders(info.headers)

                                            response.setContentType(IOParser.sharedInstance.getContentType(token))
                                            response.setStatusCode(sCode)
                                            
                                            // TODO: HEADERS & SESSION
                                            
                                            // Check for Not secured url
                                            /*if !url.containsString("https://") {
                                                self.logger.log(ILoggingLogLevel.Warn, category: self.loggerTag, message: "Not Secured URL (https): \(url)")
                                                callback.onWarning(response, warning: IServiceResultCallbackWarning.NotSecure)
                                            }*/
                                            
                                            switch sCode {
                                                
                                            case 200...299:
                                                //self.logger.log(ILoggingLogLevel.Error, category: self.loggerTag, message: "\(response.getContent()!)")
                                                
                                                callback.onResult(response)
                                                return
                                                
                                            case 300...399:

                            // user-agent
                            request.addValue("\(serviceRequest.getUserAgent())", forHTTPHeaderField: "User-Agent")
                            
                            // HEADERS & SESSION
                            
                            var endpoint = serviceRequest.getServiceToken()!.getEndpointName()!
                            
                            if let h:Header =  headers[endpoint] {
                                
                                self.logger.log(ILoggingLogLevel.Debug, category: self.loggerTag, message: "Loading previous headers information stored")
                                
                                for c:ServiceSessionCookie in h.cookies {
                                    self.logger.log(ILoggingLogLevel.Debug, category: self.loggerTag, message: "Setting cookie: \(c.getCookieName())=\(c.getCookieValue())")
                                    request.addValue(c.getCookieValue(), forHTTPHeaderField: c.getCookieName()!)
                                }
                                
                            }
                            
                        } else {
