0

I have created a Simple Aspx Page to Log the Output of a Process running on a Remote Machine.

My url is:.com/Log.ashx?Data=SomeString

Should I use WebRequest or a WebClient? What is more efficient and less resource intensive?

I would need to do this about 20 times in a minute. The ashx file does not show any output.

ataravati
  • 8,891
  • 9
  • 57
  • 89
John
  • 45
  • 6

1 Answers1

0

Neither one is more efficient than the other. WebRequest just offers you more functonality than WebClient. if WebClient exposes enough functionality for what you need than go with that. If it doesn't then use WebRequest.

chris.house.00
  • 3,273
  • 1
  • 27
  • 36
  • A suggestion : Read this. http://stackoverflow.com/questions/6449132/http-handler-vs-http-module Consider httpmodule. Are you writing the server side code? I think so, but am a little unclear. – granadaCoder Aug 23 '13 at 19:21
  • http://blog.blackballsoftware.com/2010/10/10/persisting-querystring-values-using-httpmodule/ – granadaCoder Aug 23 '13 at 19:24