开发者

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜