Skip to content

Instantly share code, notes, and snippets.

Cezar cezarcp

Block or report user

Report or block cezarcp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cezarcp / SwiftHTTPRequest.swift
Last active Sep 9, 2015
Making HTTP Requests in Swift
View SwiftHTTPRequest.swift
//Uncomment both lines below if testing on an Xcode playground.
//import XCPlayground
let url = NSURL(string: "")
let task = NSURLSession.sharedSession().dataTaskWithURL(url) {(data, response, error) in
println(NSString(data: data, encoding: NSUTF8StringEncoding))
You can’t perform that action at this time.