I believe that I understand, why our application has problem using useDefaultCredentials with SQUID proxy server.
It seems that .Net sends default credentials in format DOMAIN\UserName (or MACHINE\UserName for local users).
However SQUID expects just UserName and will not accept "\" in the name, as I was adviced by system administrator:
"Squid does not allow non-alphanumeric characters in the username so we cant try to fake it and embed a domain in the credentials (it wont take the backslash)."
I've tried to check, which credentials are sent to proxy server using Network Monitor. Unfortunately, I wasn't able to interprete packets.
By the way, Network Monitor showed that our web server and Proxy Server use TCP, not HTTP protocol to communicate. Is it normal?
Could anyone confirm that in case of useDefaultCredentials="true" .Net Runtime sends default credentials in format DOMAIN\UserName (or MACHINE\UserName for local users)????