腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
如何在
Powershell
2.0
上使用
POST
方法传递JSON参数?
powershell
我有一个
Powershell
代码,它在
powershell
版本3中工作得非常好。 我也需要在
Powershell
2.0
中运行此代码。但PS
2.0
版不支持Invoke-
WebRequest
。$params = "metrics[]=failed:count" $failed = (Invoke-
WebRequest
-Uri http://localhost:9000/stats -Method
POST
浏览 41
提问于2019-04-30
得票数 0
回答已采纳
1
回答
无法使用
PowerShell
通过API发送请求
.net
、
api
、
powershell
我们有一个函数,它可以帮助回发到调用时运行
的
应用程序。当客户端运行
PowerShell
v3.0或更高版本时,这是完美的,但是我们有一个混合产业,而且目前还没有升级
PowerShell
的
可行性。我已经看到您可以使用.NET以同样
的
方式发布xml,但是我无法让它工作。failed Invoke-RestMethod -Uri $URL -Method
Post
version <
浏览 1
提问于2017-11-09
得票数 0
回答已采纳
1
回答
PowerShell
2.0
的
PowerShell
Web请求帖子
post
、
powershell-2.0
如何在Windows 7上修改
PowerShell
2.0
版本
的
代码片段?$path = "myfolder/file.txt"Invoke-
WebRequest
-Uri "http//mywebsite" -Method
POST
-Body $body` 我试过了,但无法在
PowerShell
浏览 15
提问于2019-02-10
得票数 0
回答已采纳
1
回答
Powershell
2.0
-条件(Else)无法识别为cmdlet、函数
的
名称
powershell
我正在尝试生成一个包含(IF,Else)语句
的
powershell
脚本。主要是由于不同版本调用web请求
的
方式存在兼容性问题。V <
2.0
: Uses [System.Net.
WebRequest
] for HTTP RequestsV >
2.0
: Uses Invoke-
WebRequest
$psVers=$host.Version.Major; if (
浏览 0
提问于2014-10-15
得票数 0
1
回答
Databricks作业REST调用不适用于
Powershell
powershell
、
databricks
、
invoke-restmethod
下面是到Databricks 中
的
Jobs调用
的
链接init_
post
=requests.
post
('https://databricksworkspaceid.azuredatabricks.net/api/
2.0
/jobs/create
浏览 0
提问于2020-09-20
得票数 1
回答已采纳
1
回答
用
Powershell
调用Google
powershell
、
curl
我想从
Powershell
调用Google。谷歌
的
文档显示: -d "client_id=$CLIENT_ID&client_secret=我试图将它转换为
powershell
,例如: $token = Invoke-
WebRequest
-Uri "https://accounts.google.co
浏览 4
提问于2014-12-26
得票数 0
1
回答
Powershell
使用cookie进行身份验证
bash
、
powershell
、
cookies
我正在尝试将这两个(有效
的
) curl命令转换成
powershell
。如何使用Invoke-
WebRequest
保存cookie?Cookie bash--cookie-jar cookie \-d '{"jsonrpc": "
2.0
= Invoke-
WebRequest
-Method
POST
` -Content
浏览 1
提问于2017-02-24
得票数 1
2
回答
如何发送带有-d参数
的
curl更新请求?
powershell
、
curl
、
box-api
我需要从
powershell
发送一个curl请求,使用寻求帮助(我正在查找名为Update User
的
部分,但我遇到了一些问题:应该更新用户名,但我得到: Invoke-
WebRequ
浏览 12
提问于2018-01-29
得票数 1
回答已采纳
10
回答
PowerShell
脚本以检查URL
的
状态
powershell
、
web-services
、
powershell-2.0
、
monitoring
我在互联网上找到了同样
的
PowerShell
脚本。Invoke-
WebRequest
-Uri https://stackoverflow.com/questions/20259251/
powershell
-script-to-check-the-status-of-a-url输出 PS C:\Users\682126> Invoke-
WebRequest
-Uri https://stackoverflow.com/q
浏览 12
提问于2013-11-28
得票数 34
回答已采纳
1
回答
在调用VSTS API中传递个人访问令牌
powershell
、
azure-devops
、
powershell-2.0
、
azure-devops-rest-api
我正在使用
powershell
调用VSTS来查询构建包
的
一些json data。我没有使用Invoke-RestMethod访问API
的
问题,但是对于具有
powershell
2.0
的
系统,这个cmdlet是不可用
的
,而且我们没有被授权安装任何更高版本
的
$
WebRequest
=[System.Net.
WebRequest
],因此我使用$
WebRequest
= [System.Net.
We
浏览 1
提问于2018-05-21
得票数 0
回答已采纳
8
回答
使用
powershell
的
http请求
powershell
、
powershell-2.0
我希望用
powershell
向网页发出http请求,这可能吗?如果可能,我如何实现这一点? 我可以向https页面发出请求吗?我可以用bat文件做http请求,但不能用https,我希望我能用
powershell
做https页面请求。
浏览 2
提问于2011-10-11
得票数 19
1
回答
Invoke-
WebRequest
、
POST
方法格式问题
powershell
、
api
、
post
我正在尝试创建一个脚本,以便向我需要使用
的
应用程序接口发出一些
Post
请求,并且在理解如何与
PowerShell
一起工作时遇到一些问题。我开始使用postman中
的
应用程序接口,因为我
的
请求可以工作,但我认为我在如何将其格式化为
PowerShell
方面遗漏了一些东西: 这是我
的
PowerShell
: $body = @{password"="<password>"
浏览 67
提问于2020-09-30
得票数 0
回答已采纳
2
回答
PowerShell
WebRequest
POST
powershell
在WindowsCmdlet3.0中引入了
PowerShell
。由于某些限制,在我们
的
案例中不能使用 cmdlet。另一方面,文章中描述
的
另一种解决方案适合我们
的
需求:$request.Method="Get" $response您能否建议如何扩展此代码示例,使其能够使用
POS
浏览 0
提问于2014-04-08
得票数 11
回答已采纳
1
回答
调用-
WebRequest
cmdlet在什么版本
的
PowerShell
中可用?
.net
、
json
、
shell
、
web-services
、
powershell
要运行使用Invoke-
WebRequest
Cmdlet
的
,我将其复制到一行(加上回显)脚本中,如下所示:thufir >BuildVersion 6.1.7601.17514PSCompatibleVersions
浏览 0
提问于2018-03-29
得票数 0
回答已采纳
2
回答
如何在控制台应用程序中接收HTML帖子?
c#
、
html
、
asp.net
、
asp.net-mvc
、
http
我目前正在使用MVC从HTML
POST
ajax调用中获取数据。我想将我
的
web应用程序转换为控制台应用程序。Ajax调用: type: "
POST
", { return null;换句话说,我目前调用selen
浏览 3
提问于2015-07-15
得票数 0
2
回答
调用-
WebRequest
不被识别为cmdlet 7
Powershell
的
名称
powershell
、
windows-7-x64
、
invoke-webrequest
如何在Windows7
PowerShell
上使用此脚本?$IE = new-object -com internetexplorer.application$IE.visible=$true$word=$go = (Invoke-
WebRequest
–Uri ‘c:\word.html("$word2").item(0).click() 运
浏览 1
提问于2018-10-28
得票数 3
回答已采纳
1
回答
如何在另一个
powershell
脚本文件中调用
powershell
脚本时使用嵌套引号
json
、
powershell
、
serialization
我想在
powershell
脚本文件中执行以下调用: -ContentTypeapplication/json -Method
POST
`当在
powershell
中执行时但是,当我试图将其运行为:
浏览 3
提问于2020-03-05
得票数 1
回答已采纳
1
回答
需要帮助将Curl语句转换为
Powershell
powershell
、
curl
中使用
的
东西,但我遇到了很多悲哀。到目前为止,这是我
的
尝试:color = "pink"} Invoke-
WebRequest
-ContentType application/json -Headers @{"Authorization" = "Bearer OBSCURED"} -Method
Post
-Body "$body" -Uri
浏览 1
提问于2017-01-28
得票数 1
回答已采纳
1
回答
无法让
POST
与
Powershell
和Bitbucket一起工作
powershell
、
curl
、
post
、
bitbucket
、
bitbucket-api
我正在尝试将一个文件发布到Bitbucket存储库
的
“下载”部分。我正在跟踪Bitbucket文档中
的
页面。我正试图通过编写
Powershell
脚本来做到这一点。我尝试过一些类似于文档
的
东西: curl -s -u myBitbucketUsername -X
POST
https://api.bitbucket.org/
2.0
/repositories/myBitbucketUsername/myBitbucketRepoNa
浏览 2
提问于2017-08-02
得票数 0
1
回答
Powershell
invoke-
powershell
2.0
的
webrequest
powershell
我在
Powershell
5.0中创建了一个脚本,用于检索网站中
的
数据并将其放入文件中。下面的代码可以在Windows7或更高版本上运行,因为它们都有.net Framework5.0。现在我被告知我需要在更低版本
的
windows操作系统上运行,比如XP。XP中
的
powershells是
2.0
版本,而微软已经终止了对XP
的
支持。我需要一个
powershell
2.0
代码,它
的
行为与我在5.0中编写
的
代码相同: $num
浏览 15
提问于2017-01-11
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
PowerShell系列(一):PowerShell介绍和cmd命令行的区别
PowerShell类型的静态方法
vRO和PowerShell主机的关联
PowerShell之管道脚本的创建
PowerShell与cmd的不同之处
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券