如何检查服务器是否支持恢复或接受AddRange方法? [英] How can I check if the server supports resume or accepts AddRange method?

查看:56
本文介绍了如何检查服务器是否支持恢复或接受AddRange方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查webrequest是否接受范围?我有一个问题,因为当尝试下载带有byte [] parts的文件时。提前谢谢。

How to check if a webrequest accepts range? I have a problem because of this when try to downloading a file with byte[] parts.Thanks in advance.

推荐答案

你的Web方法应该返回一些关于请求的可接受性在方法的调用中发送。例如,它可以是布尔值(返回true表示成功),描述问题的字符串(成功时返回null或空),描述问题的一些结构(成功时可能为null,或成功状态)可以在这个结构的某些属性中返回)。



-SA
Your Web method should return some relevant information on the acceptability of the request send in the call to the method. For example, it could be a Boolean value (true returned to indicate success), a string describing a problem (null or empty returned in the case of success), some structure describing the problem (could null in case of success, or success status could be returned in some property of this structure).

—SA


这篇关于如何检查服务器是否支持恢复或接受AddRange方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆