Tag: POST
-
Post Views: 14 1. Bootstrap file input is a very good HTML5 file upload plugin, which supports a series of features such as file preview and multi-selection. When uploading a file based on Bootstrap File Input v4.3.2, the existing parameters: upfile, file_id. as shown in Figure 1 2. Now you need to add new parameters: Type, based on the selection…
-
Post Views: 14 1. In the domain name:http://editorweb.wjdev.chinamcloud.cnInterface in request:http://api.pcs.wjdev.chinamcloud.cn/v1/plan-tasks/274?login_id=2e368664c41b8bf511bcc9c65d86dbc3&login_tid=b26398238620e8cd15b0155cd7aee9b2, in response to 404 , the “Access-Control-Allow-Origin” header does not exist on the requested resource. as shown in Figure 1 Decide to implement a front-end AJAX request example in the local environment by yourself 3, POST request, response 200, but no response data. as shown in Figure 2 4. Refer…
-
Post Views: 19 1. In Postman, the details of the specified resource of the GET request, the response is 200, as shown in Figure 1 2. Check the routing configuration, the code is as follows 3. Check the controller, the code is as follows 4. Details of the specified resource for the POST request in Postman, the response is 404,…
-
Post Views: 94 1. Execute the command in Windows PowerShell: curl -x POST –data, report an error: invoke-webrequest : The location formal parameter that accepts the actual parameter “post” cannot be found. as shown in Figure 1 2. Invoke-WebRequest is a command-line tool similar to curl on the Windows platform. Execute the command: get-help invoke-webrequest, as shown in Figure 2…
-
Post Views: 16 1. \API\RESTS\PLAN_TASK\CreateAction.php, please refer to the URL for the specific implementation:https://github.com/yiisoft/yii2/blob/master/docs/guide-zh-CN/input-tabular-input.md, the code is as follows: 2. On Postman, the request parameters are shown in Figure 1 3. At the request of the front-end, add the form name, \api\rests\plan_task\createaction.php, the code is as follows 4. \common\logics\plantask.php, the code is as follows 5. On Postman, the request parameters…
-
Post Views: 11 View code: View interface: Post print after submission: Requirement: question_type is to be inserted into the database, as a string Solution 1, directly reset $_POST[‘QuestionOrder’][‘question_type’]: Reprint out the POST variable: Solution 2: The result is that both solutions can be inserted in the question_type problem type (1 replenishment, 2 exchange, 3 returns, 4 refunds, 5…