Sign in
Feroze Daud's WebLog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
RSS for posts
Atom
RSS for comments
OK
Search
Tags
Design Patterns
Exchange/UnifiedMessaging
Miscellaneous
System.Net
Archive
Archives
August 2009
(1)
December 2008
(1)
November 2008
(1)
October 2007
(1)
March 2007
(1)
September 2006
(1)
April 2006
(1)
October 2005
(5)
September 2005
(1)
May 2005
(1)
March 2005
(1)
November 2004
(2)
October 2004
(1)
July 2004
(1)
March 2004
(1)
February 2004
(1)
January 2004
(2)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Feroze Daud's WebLog
HttpWebRequest and Connections
Posted
over 9 years ago
by
Feroze Daud
8
Comments
The .NET Framework has a HttpWebRequest object in the System.Net namespace. This object allows you to talk to HTTP Servers. Usually, people forget that the underlying connection created by the request is not freed up,unless you call Close() on the response...
Feroze Daud's WebLog
HttpWebRequest and PreAuthentication
Posted
over 9 years ago
by
Feroze Daud
0
Comments
The topic of this post is PreAuthentication. HTTP Webservers support multiple authentication options. On Windows, IIS supports Basic, NTLM, Digest, Negotiate (a.k.a Integrated Windows Authentication). Of these, Basic & Kerberos support PreAuthentication...
Feroze Daud's WebLog
HttpWebRequest and Host Headers
Posted
over 8 years ago
by
Feroze Daud
1
Comments
A user posted on the newsgroups asking about how to set Host headers in HttpWebRequest. HttpWebRequest does not allow the host header to be set by the user. It is set automatically from the URI supplied to HttpWebRequest constructor. However, it...
Feroze Daud's WebLog
Enabling Tracing for System.Net
Posted
over 8 years ago
by
Feroze Daud
0
Comments
In whidbey, System.Net has a cool retail tracing implementation. It writes most calls made to public API's to a TraceListener. You can setup your own tracelisteners, or use the config file to setup a default listener. This facility is very useful in...
Feroze Daud's WebLog
Async Programming Model - Reloaded
Posted
over 9 years ago
by
Feroze Daud
6
Comments
This topic is about the asynchronous programming model, and how it is used when doing Networking. Introduction to Asynchronous Programming The DotNetFramework supports an asynchronous programming model that is uniform across all classes & features...
Feroze Daud's WebLog
Downloading content from the web using different encodings
Posted
over 9 years ago
by
Feroze Daud
10
Comments
The other day, somebody asked me: How do I download a webpage, or other content from a webserver, where the content is stored using a specific encoding ? They want to do this using for eg: System.Net.HttpWebRequest Why is this necessary ? Well, for starters...
Feroze Daud's WebLog
Ping Part II: Adventures in Socket programming using System.Net
Posted
over 8 years ago
by
Feroze Daud
3
Comments
If you see the ping utility that comes with your OS, you will notice that it has many options. However, the one we are going to develop will just take one argument: C:\ping>ping <hostname> | <ipaddress> Example: ping www.contoso...
Feroze Daud's WebLog
Forcing reuse of connections when doing Windows Authentication
Posted
over 9 years ago
by
Feroze Daud
0
Comments
When doing authentication, HttpWebRequest manages connections differently, depending on the authentication mode being used. If it uses Windows Integrated Authentication, it will close the connection after every request completes. The reasons for this...
Feroze Daud's WebLog
Ping Part III: Adventures in Socket programming using System.Net
Posted
over 8 years ago
by
Feroze Daud
0
Comments
In Part II of this article, we saw how we are going to use the ICMP protocol to implement a simple Ping client. We also saw a skeleton of this program which showed how to translate the ICMP packet specification into a C# structure. In this part...
Feroze Daud's WebLog
PING: Adventures in Socket programming using System.Net
Posted
over 8 years ago
by
Feroze Daud
2
Comments
After a long hiatus, I am back to posing to my blog. I am going to start out with a series on Socket programming. In this series, I will show you how to implement a simple Ping client using classes from the System.Net.Sockets namespace. It should...
Feroze Daud's WebLog
Ping Part IV: Adventures in Socket programming using System.Net
Posted
over 8 years ago
by
Feroze Daud
0
Comments
In this part, we will add some networking code to the code we have thus far. When we get done, we should have a working Ping utility. Take the program that we wrote in the Ping: Part III and add the following code. using System; using System...
Feroze Daud's WebLog
Printers are watching you!
Posted
over 9 years ago
by
Feroze Daud
1
Comments
Someone sent me a link which talks about how printers are embedding tracking information in pages that they print. Spooky! http://story.news.yahoo.com/news?tmpl=story&cid=1093&e=4&u=/pcworld/20041122/tc_pcworld/118664
Feroze Daud's WebLog
Tracing in System.Net (contd..)
Posted
over 8 years ago
by
Feroze Daud
0
Comments
Durgaprasad, the test lead for System.Net has a very informative entry on using Tracing facilities in whidbey. http://blogs.msdn.com/dgorti/archive/2005/09/18/471003.aspx
Feroze Daud's WebLog
Decoding Printer Tracking Technology
Posted
over 8 years ago
by
Feroze Daud
0
Comments
In a previous blog post, I wrote about how printer manufacturers are embedding tracking information in their printers. Well, today, via Slashdot, I learned that folks at EFF have figured out the encoding in atleast one printer (those made by Xerox...
Feroze Daud's WebLog
Attaching VS to a process on startup.
Posted
over 7 years ago
by
Feroze Daud
0
Comments
I have been stumped from time to time on how to attach VS debuggers to a process on process startup. I knew how to do it with Windbg, by setting ImageFileExecutionOptions for the target process. However I did not know how to do it for VS. Well, I need...
Feroze Daud's WebLog
AutoAttendant: What do the various Greetings mean
Posted
over 6 years ago
by
Feroze Daud
1
Comments
This post is going to give an explanation of what the various greetings mean, for the autoattendant. The posting will be divided into two sections. First, I will describe the common structure. Next, I will describe how this manifests itself at runtime...
Feroze Daud's WebLog
Viewing eventlog files in the absence of resource strings.
Posted
over 7 years ago
by
Feroze Daud
0
Comments
Many a time, I had to look at eventlog files sent by a customer, or those from a test run that happened some time back. These files (.evt) are offline copies of eventlogs. To view them, you open them up with eventviewer. However, you might sometimes...
Feroze Daud's WebLog
A tale of threads
Posted
over 9 years ago
by
Feroze Daud
1
Comments
Today's lesson is about thread interaction between Asp.Net and the HttpWebRequest object of the System.Net namespace. The CLR provides a threadpool. This facility provides threads for normal work ( worker threads ), I/O work ( I/O threads) and Timer Threads...
Feroze Daud's WebLog
PowerShell script to get the reason why a Unified Messaging worker process recycled
Posted
over 6 years ago
by
Feroze Daud
0
Comments
If you are the administrator of an Exchange Unified Messaging server, you might want to know why the UM worker process is recycling and how often. The following one line PowerShell script will print out all the reasons why the process recycled: ...
Feroze Daud's WebLog
Welcome
Posted
over 9 years ago
by
Feroze Daud
0
Comments
Welcome to my blog! This blog is a place for raves and rants about everything in general, and networking in particular. Watch this space for cool tips and tricks, code samples and other random stuff.
Feroze Daud's WebLog
Moved on...
Posted
over 4 years ago
by
Feroze Daud
0
Comments
At the beginning of this year, I moved onto a different company. I have joined Zillow as a Software Engineer. I will now be blogging at http://ferozedaud.blogspot.com. Hope to see you there. Cheers!
Feroze Daud's WebLog
Test-UMConnectivity Primer
Posted
over 5 years ago
by
Feroze Daud
0
Comments
Exchange 2007 Ships with a tool called test-umconnectivity that can be used to verify the health of your Exchange Unified Messaging installation. It has a couple of modes of operation: Local Voice In this mode, the task will run on a machine that has...
Feroze Daud's WebLog
Encapsulating Enumeration
Posted
over 5 years ago
by
Feroze Daud
2
Comments
While writing a unit test for a particular feature, I was faced with an interesting problem. My unit test has different scenarios. These scenarios test that a certain data item is propagated all the way down from the called function. For eg, I have...
Page 1 of 1 (23 items)