-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sporadic wrong response from HttpClient.SendAsync() when using an authenticated proxy #14763
Comments
@ChengTian What operating system are you running this on? Windows 7? Windows 8? Windows 8.1? etc.? |
/cc @CIPop @SidharthNabar |
Any update on this thread? |
No update yet. Are you see seeing this problem with the latest code? |
Yes, still repros |
I figured out the bug and why it's throwing back 407's sometimes. Basically anytime there is a URI in your list that involves a 3xx redirection response, we aren't properly re-attaching the proxy credential. So, a single URI like this can repro this problem: I will be submitting a PR into GitHub soon. |
Verified with latest However, |
The So, the source change is in CoreFx and both System.Net.Http and System.Net.Http.WinHttpHandler libraries should be consuming it. What is the exact package version of System.Net.Http.WinHttpHandler that you are using where you see the problem fixed? And what is the exact package version of System.Net.Http where you see the problem is not fixed? The problem should be fixed in both binary packages assuming that both packages have been rebuilt with the updated source files. |
@davidsh , yes, you are right. I made a mistake when manually copying assemblies. Closing because this doesn't repro |
@davidsh
Repro steps:
Looks like you get
407 (Proxy Auth Required)
sporadically even you always provide correct credentials for the proxy. Can only repro with CoreCLR.The text was updated successfully, but these errors were encountered: