要在邮递员上运行 curl 命令,在导入 Curl 时出现错误:arg.startsWith 不是函数 [英] To run curl command on postman getting error as Error while importing Curl: arg.startsWith is not a function

查看:24
本文介绍了要在邮递员上运行 curl 命令,在导入 Curl 时出现错误:arg.startsWith 不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用终端成功运行的 curl 链接,但我想将其转换为链接所在的 POSTMAN 请求,

I have a curl link which is successfully run with terminal but i want to convert it as a POSTMAN request where link is,

curl -v --silent -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -X GET -u <registry-user>:<registry-password> https://sc-docker-registry.eic.fullstream.ai/v2/<image-name>/manifests/<tag> 2>&1 --insecure  | grep Docker-Content-Digest | awk '{print ($3)}'

我已经设置了 header 和 auth 但无法设置 2>&1 --insecure |grep Docker 内容摘要 |awk '{print ($3)}'

I have set header and auth but unable to set 2>&1 --insecure | grep Docker-Content-Digest | awk '{print ($3)}'

我在哪里设置 2>&1 --insecure |grep Docker 内容摘要 |awk '{print ($3)}' 邮递员中的命令

Where do I set 2>&1 --insecure | grep Docker-Content-Digest | awk '{print ($3)}' command in postman

推荐答案

我遇到了同样的问题,但是 chrome 现在可以选择将 curl 复制为 (bash)(cmd).我在使用 copy as cmd 时遇到了问题,但是当我使用 copy as bash

I had the same issue but chrome now gives you the option to copy curl as (bash) or (cmd). I had the issue when using copy as cmd but worked when I used copy as bash

这篇关于要在邮递员上运行 curl 命令,在导入 Curl 时出现错误:arg.startsWith 不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆