watson/ipp-printer

iOS Client repeating POST request after server return HTTP 401 Unauthorized error

Closed this issue · 0 comments

I'm developing a new Airprint Server App for IOS device/Client. I have Everything working apart from the Authentication. IOS client repeat Post Request after receiving HTTP 401 Unauthorized error from the server. From the server App Console i can see the request being repeated/fired 3 times. My goal is to have the client react to the very first HTTP 401 Unauthorized response and display a UI for Username and password

How can i prevent the POST request from client to be repeated 3 times?
Any suggestion?