Please note that you need to deal with security in order to allow the request to pass through. See to deal with

Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file.

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        // Do any additional setup after loading the view, typically from a nib.
        let qurl: String = "http://localhost:4785/graph/entity/get/4HR3OxG1db"
        func buildRequestHeaders(request: NSMutableURLRequest) -> NSMutableURLRequest{
            request.addValue("application/json", forHTTPHeaderField: "Content-Type")
            request.addValue("application/json", forHTTPHeaderField: "Accept")
            return request
        func htttpRequest(request: NSURLRequest!) {
            var session = NSURLSession.sharedSession()
            var task = session.dataTaskWithRequest(request){
                (data, response, error) -> Void in
                if error != nil {
                } else {
                    let responseString = NSString(data: data!, encoding: NSUTF8StringEncoding)
                    print("responseString = \(responseString!)")
        var urlObject = NSURL(string: qurl)
        var request = NSMutableURLRequest(URL: urlObject!)
        request = buildRequestHeaders(request)
        request.HTTPMethod = "GET"

    override func didReceiveMemoryWarning() {
        // Dispose of any resources that can be recreated.