How to get http body in NSURLConnectionDelegate willSendRequestForAuthenticationChallenge
<p>I have a HTTP Basic server where i sometimes need a user to make a selection before logging in. I thought i'd do this by sending a HTTP response 401 with json contents in the HTTP body to provide the data the client needs to show to the user.</p>

<p>However, i cannot for the world understand how i get the response body content in the <code>willSendRequestForAuthenticationChallenge</code> method. Since i use Basic Auth and provide the usr/pwd directly as a http "<code>Authorization</code>" header, this method gets called whenever the user cannot login, or when he/she needs to make the selection i am talking about.</p>

<p>So... i have the <code>NSURLAuthenticationChallenge</code>, but i cannot see any way of reading the body from that object.</p>

<p>If anybody could help out i'd really appreciate it!</p>