http - 如何使用 curl 获取数据
问题描述
我有一个页面,我需要提交一个号码,然后我从那个号码中获取数据
页面就像:http://page/
并在提交表单请求 URL 更改为:http://page/services/getData
但方法类似于:
http://page/services/getData?method=search&1234
有人可以帮助我使用 curl 提取 http://page/services/getData?method=search&1234 中显示的数据吗?
我已经尝试过: curl -v -H "Content-Type: application/json" -X POST \ -d http://page/services/getData?method=search&1234 curl -o http://page/services/ getData?method=search&1234 curl --data http://page/services/getData?method=search&1234
解决方案
我一直在寻找几个小时,但我刚刚发布了这个问题,我得到了我想要的:
curl --request GET --url 'http://page/services/getData?method=search&1234'
推荐阅读
- javascript - 从字符串中删除字符会删除某些字母的倍数,但不会删除其他字母
- ios - iPad 上 NavigationLink 的奇怪行为
- svg - svg 鼠标悬停位置的工具提示
- python - 根据下一行列创建列
- hive - 在 Hive2 中向 ORC 表中插入数据
- javascript - 映射文本和 html。职位搜索
- php - 带变量的 PHP SQL Where
- javascript - JavaScript 未能执行“transferControlToOffscreen”
- python - 从 csv.Sniffer() 中排除分隔符
- javascript - 如何使用谷歌应用脚本将 zip/rar 文件上传到谷歌驱动器?