主服务器如何知道从这台计算机上载了多少文件? [英] How does main server know about how many files are uploaded from this computer?

查看:67
本文介绍了主服务器如何知道从这台计算机上载了多少文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

连接到多台计算机的主服务器如何知道从哪台计算机上载了多少文件?

how main server connected to many computers comes to know that how many files are uploaded from which computer?

and how can i remove or prevent this..

推荐答案

HTTP协议是纯客户端服务器协议.客户端发送请求,HTTP服务器响应.每次上传文件时,客户端都会使用POST方法发送请求,该方法包含一些数据,包括一个或多个文件的内容. HTTP服务器接收此数据.每个这样的请求都使用单独的服务器端脚本处理,该脚本执行发布的所有副作用,通常,该请求读取/分析发布的文件的内容,并将数据添加到数据库中.这里是引入增量计数器的地方,也是增加它的时间.

—SA
HTTP protocol is a pure client-server protocol. A client sends a request, an HTTP server responds back. Every time a file is uploaded, a client sends request with the method POST which contains some data, including content of one or more files. HTTP server receives this data. Each such request it processed with a separate server-side scripts which performs all the side effect of the post, typically, reads/analyzes the content of the posted file(s) and adds data to database. This is the place to introduce increment counter and the time to increment it.

—SA


这篇关于主服务器如何知道从这台计算机上载了多少文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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