gpt4 book ai didi

web-services - 用于使用 webServices 的 Curl 命令行?

转载 作者:行者123 更新时间:2023-11-28 19:38:29 24 4
gpt4 key购买 nike

你们知道我如何使用 Curl 命令行 POST SOAP 来测试 Web 服务吗?

我有一个文件 (soap.xml),其中附加了所有 soap 消息,但我似乎无法正确发布它。

谢谢!

最佳答案

发布一个字符串:

curl -d "String to post" "http://www.example.com/target"

发布文件的内容:

curl -d @soap.xml "http://www.example.com/target"

关于web-services - 用于使用 webServices 的 Curl 命令行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/84007/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com