随笔分类 -  http

摘要:1.使用express启动服务 安装express npm i express --save 新建app.js启动命令文件 var express = require('express'); var path = require('path'); var app = express(); app.u 阅读全文
posted @ 2023-04-26 19:07 study_php_java_C++ 阅读(591) 评论(0) 推荐(0) 编辑
摘要:BaseContentType = { ".load": "text/html", ".123": "application/vnd.lotus-1-2-3", ".3ds": "image/x-3ds", ".3g2": "video/3gpp", ".3ga": "video/3gpp", ". 阅读全文
posted @ 2022-08-19 09:31 study_php_java_C++ 阅读(54) 评论(0) 推荐(0) 编辑
摘要:<?php //$result=httpcopy('http://www.phpernote.com/image/logo.gif'); echo '<pre>';print_r($result); function httpcopy($url,$file='',$timeout=60){ $fil 阅读全文
posted @ 2020-08-21 08:25 study_php_java_C++ 阅读(568) 评论(0) 推荐(0) 编辑
摘要:使用TP6,因为需要跨域上传图片,一直不成功,网上搜了好久,方法都没解决跨域上传文件 比如下面的方式没成功 $this->app = $app; $this->request = $this->app->request; // 支持跨域请求的host数组['a.cn', 'b.cn'] $corsH 阅读全文
posted @ 2020-07-21 07:51 study_php_java_C++ 阅读(4284) 评论(1) 推荐(0) 编辑
摘要:1. 功能请求失效: 可能是链接为http请求,导致出现问题 2.浏览器网址左边出现黄色感叹号: 这是由于网页中存在http的图片链接,需要根据实际情况修改; 3.将网页内的http请求变为https: 一个办法是在 html代码 <head> 中 加入 <meta http-equiv="Cont 阅读全文
posted @ 2020-06-11 18:27 study_php_java_C++ 阅读(1888) 评论(0) 推荐(0) 编辑
摘要:问题原因:HTTPS页面里动态的引入HTTP资源,比如引入一个js文件,会被直接block掉的.在HTTPS页面里通过AJAX的方式请求HTTP资源,也会被直接block掉的。 解决方案: <meta http-equiv="Content-Security-Policy" content="upg 阅读全文
posted @ 2020-06-09 09:08 study_php_java_C++ 阅读(2096) 评论(0) 推荐(0) 编辑
摘要:function mycurl($file, $url, $aid) { // 如果文件名是中文名,将中文字符编码转换一下 $file=iconv("UTF-8","gb2312", $file); $data = [ // 还有一种打成数据流的方法. 'pic'=>new \CURLFile($f 阅读全文
posted @ 2020-04-22 11:36 study_php_java_C++ 阅读(1717) 评论(0) 推荐(0) 编辑
摘要:https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_re 比如上面的re 阅读全文
posted @ 2020-02-24 17:35 study_php_java_C++ 阅读(3162) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示