Can I set a timeout for a few seconds when connecting to a 3rd party via a form post?
During a form submission, I have to ve开发者_高级运维rify something and I don't want to wait for more than a few seconds.
I.e. if I don't get a response within 5-10 seconds, just end the request.
Is this possible and reliable?
I am doing a server side XML post in C#.
In the code-behind's Init event:
Server.ScriptTimeout = 10;
精彩评论