
https
木子李0531
金无足赤,人无完人
展开
-
Nginx 配置ssl http跳转https
server { listen 80; server_name www.aaa.com aaa.com; rewrite ^(.*)$ https://${server_name}$1 permanent; location / { root html; index index.html index.htm; } }server { list.原创 2021-05-27 17:34:03 · 166 阅读 · 0 评论 -
php $_POST接收数据的几种方式
HTTP一、常见的三种 Content-Type1, application/x-www-form-urlencoded2, multipart/form-data3, application/json$_POST 默认只能接收到 Content-Type: application/x-www-form-urlencoded 的数据二、PHP获取POST数据的三种方法方法1、application/x-www-form-urlencoded最常见的方法是:$_POST['ke原创 2021-04-07 16:36:25 · 1741 阅读 · 0 评论 -
php 使用curl请求https 错误码 errcode 43009 errmsg post参数需要json类型
$url = 'https://www.xxx.com';$header = array('Content-Type:application/json;Charset=utf-8');//增加$header 设置 Content-Type:application/json$param = json类型数据$curl = curl_init();curl_setopt($curl, CU...原创 2019-04-11 10:22:58 · 2337 阅读 · 0 评论