Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们在后端使用 VDDK API,需要模拟 VDDK API 进行测试。由于它不是 SOAP 接口,有人知道用于帮助我们模拟 api 的协议吗?
这不是一个完整的答案,因为我现在正在研究它,但该协议似乎是基于 FTP 的。这是第一行(S> 表示服务器应答,C> 表示客户端请求):
C>(客户端连接到端口 902) S> 220(某物) C>(如果服务器回答包含“需要 SSL”,则切换到 SSL) C> USER 用户 S> 331 用户需要密码。 C> 密码 S> 230 用户用户已登录。
我将遵循的下一步是编写一个虚拟 FTP 服务器并查看 C 客户端库发送到服务器的内容。
待续……也许吧:)