Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let user = "admin"
- let password = "admin"
- let headers: HTTPHeaders = [.authorization(username: user, password: password)]
- AF.request("http://192.168.10.1/status.htm",headers: headers)
- .responseJSON { response in
- debugPrint(response)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement