Peter Kelly
Peter Kelly

Reputation: 14391

What is the underlying implementation of HttpWebRequest?

I am assuming WinInet but I would like to know for sure. Does BITS use the same implementation?

Upvotes: 2

Views: 570

Answers (1)

Stuart
Stuart

Reputation: 66882

Not 100 percent sure what you are asking, but from the Rotor Shared Source I would guess that HttpWebRequest is implemented in C# on top of the sockets implementation - e.g. see http://www.koders.com/csharp/fid437F928E66BF52175A1D00E18452844B1590647F.aspx?s=httpwebrequest.cs#L2 - it certainly doesn't look like Rotor uses PInvoke to WinInet.

Upvotes: 3

Related Questions