简体   繁体   English

带有标头的HTTP POST / PUT文件,保证在GET操作中返回

[英]HTTP POST/PUT files with headers that are guaranteed to be returned on GET operations

I would like to POST/PUT files on a web server with certain HTTP headers, and have the web server return those headers on each GET requests for those files. 我想在具有某些HTTP标头的Web服务器上POST / PUT文件,并让Web服务器在对这些文件的每个GET请求中返回这些标头。

Is there a way included inside the protocol to guarantee this, or is this behavior dependent on having a proprietary web server? 协议中是否包含保证此行为的方法,或者此行为取决于拥有专有Web服务器?

Thanks. 谢谢。

It depends on the web server. 这取决于Web服务器。 Most won't store data from request header fields. 大多数不会存储请求标头字段中的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM