我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP RESTful Web服务参数最好的方法?

What is the best way to consume webservice with parameter in php using RESTful?

If I want to POST or PUT with some variables as parameter from the client which way the parameter should be on? Http header, body, or from the url?

And what is the pros and cons?

Thank you

Secret info like apicode etc should be in Header, and values should be send through POST method, It's totally depends on the requirement to pass variables through GET or POST...

近期文章

  • PHP define()和PDO连接字符串问题
  • 如何从多维json数组中获取值
  • Woocommerce Order Delivery插件更改显示位置
  • 在执行php artisan october时,不断在终端中出现错误:up
  • 如何根据Wordpress中的坐标显示用户?
  • 安全的PHP JSON日志记录
  • 我想从带有php的url检索没有扩展名的文件名
  • PHP在特定错误上记录到error_log
  • 我需要帮助eregi - preg_match [复制]
  • 购物篮四舍五入
  • GDB run之后停在warning: Breakpoint address adjusted from 0xf7fea706 to 0xfffffffff7fea706, 不再继续执行
  • POST数据未推送到POST数组
  • 如何使URL用户友好?
  • Laravel 5.1通过db设置配置
  • Ajax响应PHP回显HTML
  • 无法仅在cPanel上连接到数据库
  • ajax帖子没有在ajax上工作从div内部获取
  • 在cookie中存储jQuery点击计数,然后回显它。
  • jQuery绑定 - 如何将此Ajax调用的结果绑定到文档?
  • 如何通过join table的单词进行搜索,并通过cakephp从连接表中获取所有相关数据

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华