login about faq

I am trying to use Socket via an NTLM proxy.

How can I set domain information of the NTLM proxy?

I cannot find domain property there, and even I put domain in front of my username, it doesn't parse it and put it in NTLM message.

    Socket sock = new Socket();
    sock.HttpProxyHostname = "proxyserver";
    sock.HttpProxyPort = port;
    sock.HttpProxyUsername = "domain\\username";
    sock.HttpProxyPassword = "password";
    sock.HttpProxyAuthMethod = "NTLM";
    sock.Connect("www.google.com", 80, false, 60000);

asked Jul 09 '12 at 01:05

hebinda's gravatar image


Here are new 32-bit .NET 2.0/3.5 and .NET 4.0 builds that include HttpProxyDomain properties for Socket, Imap, MailMan, Ftp2, SFtp, Ssh, and SshTunnel. This new property will be in the next official version (v9.3.2) and will be in all supported programming languages across all supported platforms.

Here are the pre-release .NET builds:




answered Jul 09 '12 at 19:07

chilkat's gravatar image

chilkat ♦♦

What programming language is this? My guess is C#, but I cannot be sure. If it's C#, then what .NET Framework?

The HttpProxyDomain property is already present internally, but was overlooked and not exposed. I can provide a new build that includes the HttpProxyDomain property.


answered Jul 09 '12 at 13:19

chilkat's gravatar image

chilkat ♦♦

Thanks. I am using C# .Net 3.5 and 4.0. Could you kindly provide the build?

(Jul 09 '12 at 18:05) hebinda
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 09 '12 at 01:05

Seen: 6,036 times

Last updated: Jul 09 '12 at 19:07

powered by OSQA