Advertisement
Guest User

Untitled

a guest
Sep 19th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. let parameters: Parameters = ["username ": "Henry","password":"xxxx","key"="ewq2356"]
  2.  
  3. let headers = [ "Authorization": "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==", "Content-Type": "application/x-www-form-urlencoded" ]
  4.  
  5. let user = "user1" let password = "password1"
  6.  
  7. http://myapi.com/rest/index.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement