What steps will reproduce the problem?
1. Created a WebDav share using apache2
2. Entered the URL in the text field of iPhone app
3. Hit either upload / download
What is the expected output? What do you see instead?
Should download/upload the document and loading screen with connection status
should be removed.
The loading screen remains with Establishing Connection status forever.
Please provide any additional information below.
It looks like depth is not set in the http request header for the server. And
by default server assumes a depth of infinity. If server is not configured to
accept request with infinity depth it rejects the request with 403 forbidden.
Check this link http://tools.ietf.org/html/rfc4918#section-9.1.1
Adding DavDepthInfinity On in apache conf resolved this issue but this is
security issue on server side also if server may be some public server so we
may not be able to modify server side settings. So setting the request header
in init function of WTHTTPConnection resolves this issue.
See this link http://tools.ietf.org/html/rfc4918#section-8.3.1
CFHTTPMessageSetHeaderFieldValue(request, @"Depth", @"0")
This should fix the issue.
Regards
Vasudev
Original issue reported on code.google.com by kamathva...@gmail.com on 25 Aug 2010 at 8:48
Original issue reported on code.google.com by
kamathva...@gmail.com
on 25 Aug 2010 at 8:48