-
For POST requests, the script retrieves the message entered by the user and then POSTs it to the API endpoint for new message creation, as shown in Listing 3.
如果是POST请求,脚本会检索用户输入的消息,然后通过POST将其发送到api端点来创建新消息,如清单3所示。
-
For example, you might have a GPFS post-installation script and you need to add a node into the GPFS cluster and mount any GPFS file systems.
例如,您可能有一个GPFS的后安装脚本,并且需要将一个节点添加到GPFS集群中,然后挂载GPFS文件系统。
-
If this turns into a common problem — perhaps a certain script or servlet is offline quite a bit — you might want to check for the URL before making a full GET or POST request.
如果这变成一个常见的问题——可能是缺少了一个特定的脚本或servlet——那么您就可能会希望在生成完整的GET或POST请求之前来检查这个URL。
-
The code also includes a simple web form for the user to enter a new status message; on submission, the message is transmitted to the form processing script using POST.
代码还为用户提供一个简单的Web表单来输入新的状态消息;一提交,消息就会通过POST传递至表单处理脚本。
-
Each time the script is requested, it checks to see whether the request method is GET or POST and USES this distinction to decide the action to take.
每一次请求脚本时,它都会检查看请求方法是GET还是POST,然后采取相应的措施。