腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
使用
invoke-restmethod
的
powershell
POST
数据
问题
、
我目前正在尝试
使用
PowerShell
创建一个
POST
请求。这是我
的
初始hashArray@{(($body | ConvertTo-Json) -replace '"', '\&quo
浏览 28
提问于2019-11-16
得票数 0
回答已采纳
1
回答
通过
powershell
将
数据
大容量到ElasticSearch,但抛出异常
、
当我通过
powershell
将
数据
导入ElasticSearch时,总是会抛出异常,有谁能帮我?','_id':'4'}}`n{'title': 'this is a test', 'text': 'test', 'date': '2016-01-02'}".Replace("'","`"")
Invoke-Res
浏览 3
提问于2016-08-08
得票数 0
回答已采纳
2
回答
在
Powershell
中检索system.object基型
的
字符串值
、
我有来自http
post
请求
的
结果,我正在将内容存储在一个变量中。$response = Invoke-WebRequest -Uri "https://xxxxxx" -Method
Post
-Body $Body -Headers $header 内容如下:现在我只想要id
的
值。我尝试
使用
select
浏览 0
提问于2019-03-25
得票数 0
回答已采纳
2
回答
将JSON文件上载到WebAPI
、
我试图
使用
Powershell
将一个JSON文件上传到.Net Core 3 WebApp,但无法让它工作。“文件”始终为空。
的
实际请求:
Invoke-RestMethod
-Uri 'https://localhost:5001/uploadfile' -Method
Post
-InFile $file -ContentType 'application&
浏览 1
提问于2020-02-14
得票数 2
回答已采纳
1
回答
Powershell
Invoke-RestMethod
缺少Cookie值
、
、
我正在尝试
使用
powershell
invoke-restmethod
和websession来访问基于Swagger
的
API,以便(希望)捕获执行
post
方法所需
的
cookie/会话信息。'application/json'-SessionVariable websession 我可以看到正确
的
标记值,没有任何
问题
。查看websession变量,我确实有一些
数据
,但我根本没有得到任何cookie
浏览 1
提问于2016-09-05
得票数 4
回答已采纳
2
回答
将Curl转换为
Invoke-RestMethod
方法
、
、
、
、
问题
token = "djsakldsakldjaslda"curl -X
POST
-调用(
Powershell
) $token= "djsa
浏览 4
提问于2020-06-24
得票数 1
回答已采纳
1
回答
通过
powershell
实现
的
json格式
、
我正在尝试
使用
powershell
将json发送到DevOps接口。我似乎想不出如何正确地格式化它,这样
powershell
就会接受它。我一直收到这个错误。有什么建议吗?我可以在Postman中
使用
相同
的
json,没有任何
问题
。-uri $URI -Method
POST
-Headers $AzureDevOpsAuthenicationHeader -Body $a -ContentType "application/json-uri $URI
浏览 2
提问于2020-02-25
得票数 2
回答已采纳
10
回答
Powershell
v3 Invoke-WebRequest HTTPS错误
、
、
、
使用
Powershell
v3
的
Invoke-WebRequest和
Invoke-RestMethod
,我已经成功地
使用
POST
方法将json文件发布到https网站。我
使用
的
命令是 $cert=New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("cert.crt")IPADDRESS/resource -Credentia
浏览 1
提问于2012-07-28
得票数 137
回答已采纳
1
回答
在
Powershell
中
使用
参数和列表创建帖子正文
、
、
我正在尝试
使用
REST API,在这里我可以通过
POST
添加一个项目列表。然而,我似乎不能正确地得到正文
的
格式。文档说它正在寻找一个名为" data“
的
参数,它
的
类型是body,
数据
类型是一个数组。提供
的
数据
示例显示了我在供应商论坛上请求帮助
的
"String“、”String“、"String",但似乎很少有用户
使用
PowerShell
。/refer
浏览 5
提问于2017-03-03
得票数 0
回答已采纳
1
回答
API响应没有显示在
Powershell
中。
、
、
、
我正在
使用
Powershell
v4。 如何将API
的
响应输出到控制台?
PowerShell
脚本: $Response =
Invoke-RestMethod
-Uri https://localhost:8081/myAPI -Body '{"username":"xyz"
浏览 1
提问于2017-08-07
得票数 2
2
回答
调用-当cmd中
的
cURL正常工作时,RestMethod返回“无效用户”
、
、
、
我试图
使用
Invoke-RestMethod
在
PowerShell
中运行一个
PowerShell
命令,但是它不能正常工作。curl -X
POST
"https://valid_URI" -H "Content-Type: application/json" -H "x-api-key从这里开始,我想自动化响应,因为令牌只有效24小时,所以我认为<em
浏览 2
提问于2021-06-10
得票数 1
回答已采纳
1
回答
WebJobs不停止
使用
powershell
脚本中
的
Rest方法-获取错误403 -此web应用程序被停止
、
、
、
、
然而,当我在我
的
powershell
脚本中
使用
invoke- with方法时,它会返回错误403 --这个web应用程序被停止了,但是在我
的
蔚蓝色站点上,它仍然在运行。令人沮丧
的
是,当我
使用
postman时,我可以
使用
这个方法,但是对于我
的
脚本来说,
使用
相同
的
请求并不是停止网络作业。我尝试过在
powershell
中运行这个特定
的
脚本,但是由于所述
的
错误,它不会运行
浏览 0
提问于2019-08-05
得票数 1
回答已采纳
1
回答
远程服务器返回错误:(413)请求实体太大。Elasticsearch和JSON
、
、
、
我已经
使用
Kibana为这个文件创建了一个映射,现在我正在尝试将其添加到elastic search中。我在
PowerShell
中运行这个命令。C:\Users\Khan>
Invoke-RestMethod
"http://localhost:9200/mysofindex/_bulk?pretty" -Method
Post
-ContentType 'application/x-ndjson' -InFile "
浏览 69
提问于2019-10-22
得票数 3
回答已采纳
1
回答
曲棍球上传错误:
Invoke-RestMethod
:基础连接已关闭:无法建立
、
、
、
我正在尝试上传appx到曲棍球应用程序
使用
PowerShell
脚本。当我运行
PowerShell
脚本时,出现以下错误:
浏览 13
提问于2017-08-18
得票数 0
1
回答
Powershell
--大括号内大括号
的
JSON语法
、
Powershell
5.1 -我正在
使用
Invoke-RestMethod
对端点进行
POST
数据
处理。TestServiceType", "PartitionScheme": "Singleton" "InstanceCount": "1"在
Powershell
中,我很难获得正确
的</e
浏览 1
提问于2019-08-21
得票数 1
回答已采纳
1
回答
如何从Visual Studio (C#)启动
PowerShell
脚本
、
我在一些Windows Form C#项目中工作,在那里我需要启动下一个命令(它在PoweShell中工作得很好):using (
PowerShell
powershell
=
PowerShell
.Create())
powershell
.AddScript();我
的
代码#1:
浏览 0
提问于2021-02-26
得票数 0
1
回答
无法从批处理文件以CMD模式运行
PowerShell
脚本
、
、
、
我为
PowerShell
创建了一个FileWatcher脚本。我需要在C#中执行它。我试过很多种方法,但都没成功。我甚至创建了一个批处理文件来执行我
的
脚本。但是它仍然不能工作,只是控制台被打开和关闭。下面是我
的
PowerShell
脚本:$filter = '*.csv' $fsw = New-Object IO.FileSystemWatcher $folder,FilePath D:\outp.txt -Append -InputObject &q
浏览 2
提问于2017-03-20
得票数 0
1
回答
在
powershell
中调用Rest API并等待响应
、
、
我对
PowerShell
非常陌生。我
使用
Invoke-RestMethod
在一个
powershell
脚本中运行多个rest API调用,第二个rest api调用返回200,但它无法完成所需
的
操作。因为当我在单独
的
脚本中单独运行第二个api时,它运行得很好。
powershell
调用rest方法函数中是否存在异步和等待 当前代码 try {
Invoke-RestMethod
-
浏览 28
提问于2020-10-09
得票数 0
回答已采纳
3
回答
如何
使用
Powershell
访问restful风格
的
How服务?
、
、
我需要集成一个现有的
powershell
脚本,以便通过一个返回json
的
restful web服务来更新它
的
状态。我是
powershell
的
新手,但我能够找到System.Net.WebRequest对象,执行以下操作。[ {id:1}, {id:2}] // etc有什么建议吗?
浏览 2
提问于2011-01-05
得票数 16
2
回答
使用
PowerShell
的
Rapidshare API
、
、
$FreeUploadServer =
Invoke-RestMethod
-Uri "http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=nextuploadserver"
Invoke-RestMethod
-Uri "http://rs$FreeUploadServer.rapidshare.com/cgi-bin/rsapi.cgi43533592&password=password&
浏览 2
提问于2012-09-04
得票数 0
回答已采纳
点击加载更多
相关
资讯
GET/POST接收或发送数据的问题
使用Ajax中的post请求完成无刷新录入功能
如何使用多线程POST技术构建高效的发帖器?
Linux 使用curl发起post请求的4个常用方式
使用光盘存储数据存在的问题
热门
标签
更多标签
云服务器
ICP备案
实时音视频
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券