I see you're using .NET. Not sure if it's C#, or what libraries you're using to connect, but if you're using the out of the box support and are using C#, here's an example of setting a proxy...
var result
= new StringBuilder
(); try
{
var transferProxy
= new WebProxy
("http://proxy:80/",
true); transferProxy
.Credentials = new NetworkCredential
("userId",
"password",
"Domain"); var transferRequest = WebRequest.Create("http://www.snipplr.com");
transferRequest.Proxy = transferProxy;
HttpWebResponse transferResponse = (HttpWebResponse)transferRequest.GetResponse();
System.IO.Stream outputStream = transferResponse.GetResponseStream();
System.Text.Encoding outputEncoding = System.Text.Encoding.GetEncoding("utf-8");
System.IO.StreamReader outputReader
= new System.IO.StreamReader(outputStream, outputEncoding
); char[] chars
= new Char[256]; int readCount = outputReader.Read(chars, 0, 256);
int totalRead = readCount;
while(readCount > 0)
{
string str
= new String(chars,
0,
256); result.Append(str);
readCount = outputReader.Read(chars, 0, 256);
}
transferResponse.Close();
outputStream.Close();
outputReader.Close();
}
catch(Exception ex)
{
string str = ex.Message;
}
Caveat- I pulled this from some other code and scrubbed some of the identifying lines, so there may be extraneous lines in there or it may not compile offhand, but the code is correct. Let me know if you have any questions, but it's pretty straightforward, and from what you've already done with snip-it, I'm sure it shouldn't be an issue.

UPDATE: Made sure it still compiled and fixed an embarrassing oversight.