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.

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

A suggestion : Read this. 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.