How to create a GET, POST, and PUT request in Swift?
I can connect to a server synchronously with this code snippet in swift. let URL: NSURL = NSURL(string: "http://someserver.com)! let InfoJSON: NSData? = NSData(contentsOfURL: URL) let JsonInfo: NSString = NSString(data:InfoJSON!, encoding: NSUTF8StringEncoding)! let GameListAttributions: NSArray = NSJSONSerialization.JSONObjectWithData(InfoJSON!, options: .allZeros, error: nil)! as NSArray This is only good for receiving information all at once, but how would I use a GET, POST, and PUT with Swift. No matter how much I search I can't find a good tutorial or example on how to execute these. let