0

Does the WebClient class support changing the method to HEAD?

I like the simplicity of using this class but if it's not that flexible then I will simply switch over to using the full-fledged HttpWebRequest and Response classes.

John K
  • 28,441
  • 31
  • 139
  • 229
  • This [answer](http://stackoverflow.com/questions/153451/c-how-to-check-if-system-net-webclient-downloaddata-is-downloading-a-binary-fi/156750#156750) shows how you can do it with subclassing. – Matthew Flaschen Sep 01 '10 at 01:16
  • @Matthew, I saw the subclassing thing in the MSDN docs but was hoping there was another way without created a new data type (I mean a way that's not reflection either :). Why not throw your answer down below because it's a good contender by what I see. – John K Sep 03 '10 at 03:06

1 Answers1

0

Marc Gravell suggested a solution to a similar problem, using a subclass.

Community
  • 1
  • 1
Matthew Flaschen
  • 278,309
  • 50
  • 514
  • 539
  • Although I've chosen against using this in my program, it seems the most correct answer all things considered, so am accepting it as such. Thanks. – John K Sep 03 '10 at 03:32