如何回应GET文件请愿? [英] How to respond to a GET file petition?

查看:74
本文介绍了如何回应GET文件请愿?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

引用:

问题很简单。我想要一些外部客户端在我的asp.net服务器的一个特定目录中搜​​索特定文件。在该客户请愿的那一刻,该文件应该生成(并提供给客户)。



有可能吗?我应该使用哪种方法来编写此响应?谢谢。

解决方案

您好,



您可以使用HttpHandler。



供您参考:在ASP.NET中实现HTTPHandler和HTTPModule [ ^ ]

http://support.microsoft。 com / kb / 308001 [ ^ ]

Quote:

the question is simple. I want some external client to search in one specific directory of my asp.net server for an specific file. And that file should be generated(and given to the client) in the moment of the petition from this client.

Is it possible? Which method should I use to program this response? Thanks.

解决方案

Hi,

You can use HttpHandler.

For your reference : Implementing HTTPHandler and HTTPModule in ASP.NET[^]
http://support.microsoft.com/kb/308001[^]


这篇关于如何回应GET文件请愿?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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