[英]How can I redirect 7z-compressed content using LWP::UserAgent as an attachment
I have a perl script which accepts incoming POST and PUT requests from other command line clients, gets the data (gzip) associated with each request and writes out to a seperate file. 我有一个perl脚本,它接受来自其他命令行客户端的传入POST和PUT请求,获取与每个请求关联的数据(gzip),并写出到单独的文件中。
I want to extend the script by adding redirect functionality. 我想通过添加重定向功能来扩展脚本。
Here is what I'm planning to do * Once the data file is written, forward/redirect the file with the same headers(which we received from clients ) to another URL using LWP. 我打算做的是*写入数据文件后,使用LWP将具有相同标头(我们从客户端收到的标头)的文件转发/重定向到另一个URL。
Please let me know about how to do that. 请让我知道如何执行此操作。
LWP is a Web client library; LWP是一个Web 客户端库; I think you want CGI
's redirect
method or similar. 我认为您想要CGI
的redirect
方法或类似方法 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.