标签: payload

提供MDM DeviceLock有效负载

在将第一个有效负载发送为mdm:后,我们能够获得状态为空闲的响应.现在我们要发送一个简单的设备锁有效负载.我们按照完全相同的过程发送有效负载,但返回的响应是空白的.

我们按照以下方式使用证书:1.在MDM服务器上,要发送mdm命令,我们使用MDM Vendors APNS证书,标识符为com.apple.mgmt.myapp.(此标识符在配置文件中设置为主题).2.在配置文件中,我们将凭据设置为MDM客户端返回的p12文件.

我收到以下错误..:MC |无法解析配置文件数据.错误:

    NSError 0x1c58c2f0:
    Desc   : Invalid Profile
    US Desc: Invalid Profile
    Domain : MCProfileErrorDomain
    Code   : 1000
    Type   : MCFatalError


    <Warning>: MDM|Command Status: Error
    Error: NSError 0x1c58c2f0:
    Desc   : Invalid Profile
    US Desc: Invalid Profile
    Domain : MCProfileErrorDomain
    Code   : 1000
    Type   : MCFatalError
Run Code Online (Sandbox Code Playgroud)

payload apple-push-notifications mdm ios

5
推荐指数
1
解决办法
3080
查看次数

更新MDM中iOS设备中安装的配置文件

我想将配置有效负载发送到设备.例如.我想向特定设备发送限制有效负载(Disallow safari).即我想更新设备上安装的配置文件.

我是否需要以与发送查询有效负载相同的方式发送此配置配置文件有效负载?

我是否需要包含设备上存在的配置文件的所有配置有效负载?或者只需要发送我需要更新的那个.

请帮忙!!!

configuration payload restrictions mdm ios

5
推荐指数
1
解决办法
3691
查看次数

iOS:MDM签入样本

我处于移动设备管理实施的早期阶段.我正在使用iOS Enterprise开发者帐户.我已经开始探索MDM Server实现.

我需要一些从iOS设备收到的iOS样本签到数据.这些示例需要了解在服务器端编写API,因为这些API对于Blackberry,Android和其他移动平台应该是常见的.

payload mdm ios

5
推荐指数
1
解决办法
4729
查看次数

使用Java发送HTTP Post Payload

我正在尝试连接到groovehark API,这是http请求

POST URL
http://api.grooveshark.com/ws3.php?sig=f699614eba23b4b528cb830305a9fc77
POST payload
{"method":'addUserFavoriteSong",'parameters":{"songID":30547543},"header": 
{"wsKey":'key","sessionID":'df8fec35811a6b240808563d9f72fa2'}}
Run Code Online (Sandbox Code Playgroud)

我的问题是如何通过Java发送此请求?

java httprequest payload grooveshark

5
推荐指数
1
解决办法
3万
查看次数

Java:将原始数据添加到有效负载Httpost请求中

我打算在Payload中发送一个带有大字符串的简单http post请求.

到目前为止,我有以下内容.

    DefaultHttpClient httpclient = new DefaultHttpClient();


    HttpPost httppost = new HttpPost("address location");

    String cred = "un:pw";

    byte[] authEncBytes = Base64.encodeBase64(cred.getBytes());
    String authStringEnc = new String(authEncBytes);



    httppost.setHeader("Authorization","Basic " + authStringEnc);
Run Code Online (Sandbox Code Playgroud)

但是,我不知道如何将简单的RAW字符串附加到有效负载中.我能找到的唯一例子是实体中的名称值对,但这不是我想要的.

任何帮助?

java http-post payload

5
推荐指数
1
解决办法
3万
查看次数

HttpURLConnection:如何读取400响应的有效负载

我使用以下代码将JSON请求发送到我的Web服务,对于错误的请求,我返回了400消息代码以及有效负载中的详细JSON错误响应。

我不明白在使用时如何在客户端上检索此有效负载HttpURLConnection,因为它会立即引发IOException和连接InputStreamnull

HttpURLConnection connection = this.connect(url);
connection.setRequestMethod(method);
OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
out.write(jsonMessage);
InputStream is = null;
try {
    is = connection.getInputStream(); // IOException is thrown, how can I still get payload??
} catch (Exception e) {
} 
String response = getStringFromInputStream(is);
Run Code Online (Sandbox Code Playgroud)

也尝试使用getErrorStream(),但这包含Apache Tomcat的默认错误页面,而不是我在例如使用可视REST API客户端时看到的有效负载。

java json httpurlconnection ioexception payload

5
推荐指数
1
解决办法
8476
查看次数

创建卡片后,无法通过Trello Webhook获取信息卡片

根据Trello官方文档(https://trello.com/c/IMVYmVG1/1458-webhooks),关于webhook有效负载,“当事件触发时,您将收到以下格式的JSON有效负载:

{
  action: { ...  }
  model: { ... }
}
Run Code Online (Sandbox Code Playgroud)

但是我的webhook没有发布任何“动作”属性。

查看我的回调收到的参数:

 Started POST "/trello_hooks/doing_callback" for 127.0.0.1 at 2015-02-27 11:29:04 +0100
Processing by TrelloHooksController#doing_callback as HTML
  Parameters: {"model"=>{"id"=>"54efd4339c9ed81c24d64ced", "name"=>"Bureau", "desc"=>"", "descData"=>nil, "closed"=>false, "idOrganization"=>nil, "pinned"=>false, "url"=>"https://trello.com/b/C9Tlh6lw/bureau",
     "shortUrl"=>"https://trello.com/b/C9Tlh6lw", "prefs"=>{"permissionLevel"=>"private", "voting"=>"disabled", "comments"=>"members", "invitations"=>"members", "selfJoin"=>false, "cardCovers"=>true, "cardAging"=>"regular", "calendarFeedEnabled"=>false, "background"=>"blue", "backgroundColor"=>"#0079BF", "backgroundImage"=>nil, 
    "backgroundImageScaled"=>nil, "backgroundTile"=>false, "backgroundBrightness"=>"unknown", "canBePublic"=>true, "canBeOrg"=>true, "canBePrivate"=>true, "canInvite"=>true}, "labelNames"=>{"green"=>"Merci Edgar", "yellow"=>"LBP", "orange"=>"Kismar", "red"=>"WhiteMark", "purple"=>"", "blue"=>"", "sky"=>"", "lime"=>"", "pink"=>"", "black"=>""}},
     "trello_hook"=>{"action"=>"doing_callback", "model"=>{"id"=>"54efd4339c9ed81c24d64ced", "name"=>"Bureau", "desc"=>"", "descData"=>nil, "closed"=>false, "idOrganization"=>nil, "pinned"=>false, "url"=>"https://trello.com/b/C9Tlh6lw/bureau", "shortUrl"=>"https://trello.com/b/C9Tlh6lw", "prefs"=>{"permissionLevel"=>"private", "voting"=>"disabled", …
Run Code Online (Sandbox Code Playgroud)

ruby payload trello

5
推荐指数
1
解决办法
275
查看次数

如何使用github webhooks阻止特定的推送?

我试图保护我的github仓库免受一些特定的推动(例如推动冲突标记<<<<<).

起初,我尝试编写一个pre-commit git hook来阻止那些特定的提交.然后实现github存储库不接受预提交挂钩,我必须在客户端为每个贡献者安装它们.

这不是一个简洁的解决方案,因为有人可能忘记在克隆后安装钩子.也可以覆盖预提交挂钩.

然后我了解了github webhooks.他们可以在推送存储库期间通过有效负载通知.

是否有可能通过webhook检查和阻止推送?

git github payload webhooks githooks

5
推荐指数
1
解决办法
1201
查看次数

Firefox推送通知 - 通过curl发送数据

Mozilla Firefox 因为44版本(不像49版本Google Chrome)支持push-notifications有效载荷.人们可以在这里看到例子.

Firefox Firefoxwiki页面上提到的demo项目生成curl运行参数:

curl -I -X POST --header "ttl: 60" "https://updates.push.services.mozilla.com/push/gAAAAABW4ccaidtFYOP2m56-XiY_NSKDXV1QiJ-4cpZG5BF-W7FjWE17SDt-h-b4b4VJamuvL30OcI9msyM1bupE9YHrwQZH4D7Uh2YS8cE_Tpvnvm3CgpBjblH58sE78HQjjbahB5NG4CkkKLj13gz0eB9mOAVGfcM3qo4Z61M5fn_6HZqLvCg="
Run Code Online (Sandbox Code Playgroud)

现在如何添加有效负载curl,哪些将被发送到注册service-worker

firefox curl payload push-notification service-worker

5
推荐指数
1
解决办法
2658
查看次数

状态400:测试时无效的多部分有效负载格式

我有这条路

server.route({
  method: 'POST',
  path: '/upload',
  config: {
    payload: {
      output: 'stream',
      parse: true,
      allow: 'multipart/form-data',
    },

    handler: fileUploadHandler
  }
})
Run Code Online (Sandbox Code Playgroud)

在浏览器上工作得很好; 但是,当通过jest + supertestpostman请求API时,Hapi返回状态400:无效的多部分有效载荷格式.我注意到的另一件事是甚至没有调用fileUploadHandler.

错误堆栈跟踪:

Error: Invalid multipart payload format
    at onError (/Users/trungnguyen/Desktop/bus-file-uploader/node_modules/subtext/lib/index.js:310:26)
    at g (events.js:291:16)
    at emitOne (events.js:101:20)
    at emit (events.js:188:7)
    at internals.Dispenser._emit (/Users/trungnguyen/Desktop/bus-file-uploader/node_modules/pez/lib/index.js:196:15)
    at internals.Dispenser._abort (/Users/trungnguyen/Desktop/bus-file-uploader/node_modules/pez/lib/index.js:202:10)
    at internals.Dispenser._onLineEnd (/Users/trungnguyen/Desktop/bus-file-uploader/node_modules/pez/lib/index.js:325:25)
    at _lines.on (/Users/trungnguyen/Desktop/bus-file-uploader/node_modules/pez/lib/index.js:94:14)
    at emitNone (events.js:86:13)
    at emit (events.js:185:7)
Run Code Online (Sandbox Code Playgroud)

这是我的Supertest(用Jest编写)代码:

  test('returns 500 if file is not CSV', async () => {
    await …
Run Code Online (Sandbox Code Playgroud)

payload supertest hapijs

5
推荐指数
0
解决办法
577
查看次数