SHARE
TWEET

Untitled

a guest Feb 4th, 2016 157 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let urls = ["www.testpage.com", "www.testpage.com/username=erik&password=123", "www.testpage.com/token=123456"]
  2.  
  3. for (index, url) in urls.enumerate() {
  4.  
  5.      self.urlRequest = NSMutableURLRequest(URL: urlObject.baseUrl, cachePolicy: NSURLRequestCachePolicy.ReloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 30.0)
  6.  
  7.      NSURLConnection.sendSynchronousRequest(self.urlRequest, returningResponse: &response)
  8.  
  9.      if index == 2 {
  10.           print("Login successful")
  11.      }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top