         // construct REST request
         let request = RestRequest(
             method: .POST,
-            url: PersonalityInsights.profileURL,
+            url: serviceURL + "/profile",
             acceptType: "application/json",
             contentType: contentType,
             queryParameters: queryParameters,

        guard let content = html.dataUsingEncoding(NSUTF8StringEncoding) else {
            let failureReason = "HTML could not be encoded to NSData with NSUTF8StringEncoding."
            let userInfo = [NSLocalizedFailureReasonErrorKey: failureReason]
            let error = NSError(domain: PersonalityInsights.domain, code: 0, userInfo: userInfo)
            failure?(error)
            return
        }

        guard let content = text.dataUsingEncoding(NSUTF8StringEncoding) else {
            let failureReason = "Text could not be encoded to NSData with NSUTF8StringEncoding."
            let userInfo = [NSLocalizedFailureReasonErrorKey: failureReason]
            let error = NSError(domain: domain, code: 0, userInfo: userInfo)
            failure?(error)
            return
        }
