|Summary:||HttpClient authentication not working|
|Product:||[Mono] Class Libraries||Reporter:||Rob DeRosa <rob.derosa>|
|Component:||System.Net.Http||Assignee:||Marek Safar <masafa>|
|Severity:||major||CC:||arpitj, david, jcorominas, jim, masafa, matthew.m.noel, mono-bugs+mono, pj.beaman, prashantm|
|Target Milestone:||4.0.4 (C5SR4)|
|Tags:||Is this bug a regression?:||---|
|Last known good build:|
Comment 1 Marek Safar 2015-06-08 03:54:29 UTC
*** Bug 30883 has been marked as a duplicate of this bug. ***
Comment 2 Marek Safar 2015-06-08 05:01:01 UTC
Could you provide repro which would help us track the issue?
Comment 3 Jordi Corominas 2015-06-08 07:06:37 UTC
More information can be found here: http://forums.xamarin.com/discussion/42647/problem-with-httpclient-after-updating-xamarin-ios Unfortunatelly we can't provide a repo, but we posted part of the code on this post.
Comment 6 Marek Safar 2015-06-09 12:36:05 UTC
I can reproduce the issue now
Comment 7 Rob DeRosa 2015-06-10 12:02:32 UTC
Some additional findings from one of the reporters of the issue: "We also discovered that neither HttpClientHandler nor old good HttpWebRequest classes work when HTTP “HEAD” verb is used and server has NTLM security option enabled. Still the same 401.2 Unauthorized and no further hand-shake process established. Symptoms are the same. This issue sorely breaks our network traffic optimization idea which is of very high priority for us!"
Comment 8 Marek Safar 2015-06-10 15:25:11 UTC
Fixed in master/Mono 4.2. Do you need this in 4.0?
Comment 9 Matthew Noel 2015-06-11 09:53:22 UTC
What version of Xamarin.iOS corresponds to master/Mono 4.2 as opposed to 4.0?
Comment 10 Marek Safar 2015-06-16 07:18:28 UTC
There isn't any Xamarin.iOS version based on Mono 4.2 available but I proposed this to be included in SR3 (next service release update) of the latest Xamarin.iOS
Comment 12 Jim Bennett 2015-08-04 15:45:26 UTC
Is there a release version for this fix yet?
Comment 13 PJ 2015-08-04 15:56:29 UTC
Hi Jim, This was just released today on the release blog , and will make it to the updater channels at the end of the month.  https://releases.xamarin.com/ios-hotfix-for-watch-app-submission-technical-bulletin/
Comment 14 Arpit Jha 2015-08-24 10:30:31 UTC
I have checked this issue with latest C5SR4 and C5 trunk and sample repo attached in trello card : https://trello.com/c/wrYIjqtU/10-mono-xi-bug-30869-httpclient-authentication-not-working responcecode getting ’Not Found’ with both builds, As per Oleg Comment on trello card this is expected behaviour. C5SR4 monotouch-18.104.22.168_c22cea6554d9519559899c96e40e6ef168ab6492 : http://www.screencast.com/t/pGcSf5CwZzBb C5 trunk : monotouch-22.214.171.124_b5808d382e134f01e699480d722116c22781c2bc : http://www.screencast.com/t/5bnNphIVC20 I have also updated the trello card. Thanks