小编myf*_*wik的帖子

从Windows命令提示符将stdin发送到进程

在Windows中,我有一些控制台程序在后台运行且隐藏了控制台。无论如何,有直接输入到程序控制台的信息吗?我希望能够执行以下操作:

echo Y| *the_running_process_here*
Run Code Online (Sandbox Code Playgroud)

将Y发送到流程的标准输入。

windows console stdin

8
推荐指数
1
解决办法
3448
查看次数

HTTP数据块在多个数据包上?

HTTP服务器通过多个数据包发送数据的正确方法是什么?

例如,我想传输一个文件,我发送的第一个数据包是:

HTTP/1.1 200 OK
Content-type: application/force-download
Content-Type: application/download
Content-Type: application/octet-stream
Content-Description: File Transfer
Content-disposition: attachment; filename=test.dat
Content-Transfer-Encoding: chunked

400
<first 1024 bytes here>

400
<next 1024 bytes here>

400
<next 1024 bytes here>
Run Code Online (Sandbox Code Playgroud)

现在我需要制作一个新包,如果我发送:

400
<next 1024 bytes here>
Run Code Online (Sandbox Code Playgroud)

所有的客户都关闭了我的连接,文件被缩短了.

我在第二个数据包中放入哪些标头继续使用数据流?

http packet chunked-encoding

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

chunked-encoding ×1

console ×1

http ×1

packet ×1

stdin ×1

windows ×1