经过 最近新做了一个需求,需要通过https远程调用第三方接口。之前也对接过一些接口,只不过之前对接的接口的报文编码格式基本上都是UTF-8,而这次对接的是GBK。 一顿操作之后和对端的接口终于通了,不过却发现对方返回的报文出现一堆问号乱码。开始以为底层的实现没有做URLDecoder(实际上即使没 ...
分类:
其他好文 时间:
2021-07-23 17:37:55
阅读次数:
0
jQuery是什么? <1> jQuery由美国人John Resig创建,至今已吸引了来自世界各地的众多 javascript高手加入其team。 <2>jQuery是继prototype之后又一个优秀的Javascript框架。其宗旨是——WRITE LESS,DO MORE! <3>它是轻量级 ...
分类:
Web程序 时间:
2021-07-21 17:34:40
阅读次数:
0
import os dirlist = os.listdir() #打开文件 fo = open("dirs.txt","w") #遍历 for dir in dirlist: #判断如果是文件夹 if os.path.isdir(dir): #写 file.write(str(os.path.ab ...
分类:
编程语言 时间:
2021-07-16 17:33:40
阅读次数:
0
json={ "ip"=> "127.0.0.1, "ports"=> '80,135', "data"=>[{"port":22,"item":["22","open","tcp","","ssh"]}] } puts "str:#{ str.to_json}" write_log("nmapre ...
分类:
其他好文 时间:
2021-07-12 18:01:18
阅读次数:
0
private string HttpRequest(Dictionary<string, object> dic, string url) { string json = JSONhelper.ObjToJson(dic); WebRequest request = WebRequest.Crea ...
分类:
Web程序 时间:
2021-07-07 17:56:22
阅读次数:
0
1、启动服务 systemctl restart mysqld.service 报错: 启动数据库Can‘t connect to MYSQL server through socket ''var/lib/mysql/mysql.cock(146 lock timed out:Retry tran ...
分类:
数据库 时间:
2021-07-05 17:35:04
阅读次数:
0
一、循环的适用场景(建议) for : 比较适合遍历数组,字符串等等。 for in : 比较适合遍历对象,遍历对象时使用这个再合适不过。 while : while 与 for 的使用场景差不多。 do while : 至少执行一边的循环,遍历数组和字符串也很方便。 二、while遍历数组需要注意 ...
分类:
编程语言 时间:
2021-07-05 17:29:20
阅读次数:
0
GSON默认是开启html编码的, 方法注释是这么写的: By default, Gson escapes HTML characters such as < > etc. Use this option to configure Gson to pass-through HTML characte ...
分类:
其他好文 时间:
2021-07-02 16:09:53
阅读次数:
0
一、官方示例 地址:https://docs.locust.io/en/stable/quickstart.html#how-to-write-a-real-locust-file 二、安装Locust Windows系统安装locust: 直接通过 pip install locustio 命令安 ...
分类:
编程语言 时间:
2021-07-01 16:30:11
阅读次数:
0
一.Jmeter??GUI菜单栏主要组件 添加->threads->线程组(控制总体并发)线程组->添加-> Sampler(采样器)-> Http (?个线程组下?可以增加?个Sampler) bin:核?可执??件,包含配置jmeter.bat: windows启动?件(window系统?定要配 ...
分类:
编程语言 时间:
2021-06-30 18:40:02
阅读次数:
0