我有一些JSON,我正在尝试使用curl。
$json = [char]93 + "{"fields":{"project":{"key":"TEST"},"summary":"Test of the REST","description":"Issue created using the REST API","issuetype":{"name":"Bug"}}}` + [char]93
我使用了[char]3
我无法获得工作API rest来检查许可证的健康状况。
api.php (副控制器)
<?php
require APPPATH . '/libraries/REST_Controller.php';
use Restserver\Libraries\REST_Controller;
class Inmobiapi extends REST_Controller {
/**
* Get All Data from this method.
*
* @return Response
我有一个rest端点,它不执行身份验证检查。我可以在Linux上运行一个简单的curl逗号:
curl -k https://application/api/about
这是回应。
但是,如果在PowerShell上尝试以下操作,则失败:
Invoke-RestMethod https://application/api/about
然后我得到:
Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:1
+ Invoke-R
当我试图通过Git调用从终端提示符创建存储库时。由于无法从终端提示符创建新的存储库,所以我能够克隆和推送存储库文件。
Command Prompt
C:\Users\user>curl -u 'UniqueUserName' https://api.github.com/user/repos -d '{"name":"MyNewRepo"}'
Enter host password for user ''UniqueUserName'':
curl: (35) schannel: next