Instead of re-discovering the nonce and realm for every request, cache them in th socket.
Attach a file by drag & drop or click to upload