java模拟post请求发送json,用两种方式实现,第一种是HttpURLConnection发送post请求,第二种是使用httpclient模拟post请求, 方法一: 方法二:使用httpclient实现 ...
分类:
编程语言 时间:
2017-01-07 13:15:20
阅读次数:
268
#region 获取PDF文件的页数 private int BytesLastIndexOf(Byte[] buffer, int length, string Search) { if (buffer == null) return -1; if (buffer.... ...
分类:
Web程序 时间:
2017-01-07 09:10:19
阅读次数:
275
T.120 tag / 标记 TAPI, Telephony API / 电话 API target journaling / 目标日志 taskbar / 任务栏 taskbar button / 任务栏按钮 TCP/IP, Transmission Control Protocol/Intern ...
分类:
其他好文 时间:
2017-01-07 01:30:36
阅读次数:
219
[codevs1743]反转卡片 试题描述 【dzy493941464|yywyzdzr原创】 小A将N张卡片整齐地排成一排,其中每张卡片上写了1~N的一个整数,每张卡片上的数各不相同。 比如下图是N=5的一种情况:3 4 2 1 5 接下来你需要按小A的要求反转卡片,使得左数第一张卡片上的数字是1 ...
分类:
其他好文 时间:
2017-01-07 01:05:52
阅读次数:
184
Stream: 类似这样:a.pipe(b).pipe(c); 我想写一个b。所以: 最后正常显示: Buffer: 先说概念: Unicode定义码点,utf8配置字节如何对应码点。 Buffer,你能看到是Unicode 16进制码的形式储存。 Buffer[0],这种返回的是10进制的Unic ...
分类:
Web程序 时间:
2017-01-07 00:14:19
阅读次数:
293
CA, certification authority / 证书颁发机构 cache / 高速缓存 cache file / 缓存文件 caching / 缓存 caching resolver / 缓存解析程序 Callback Control Protocol, CBCP / 回叫控制协议 ca ...
分类:
其他好文 时间:
2017-01-07 00:08:17
阅读次数:
204
Express URL跳转(重定向)的实现 Express是一个基于Node.js实现的Web框架,其响应HTTP请求的response对象中有两个用于URL跳转方法res.location()和res.redirect(),使用它们可以实现URL的301或302重定向。 res.location( ...
分类:
Web程序 时间:
2017-01-06 10:54:44
阅读次数:
338
nginx + SSL优化配置: 各参数的含义请参见参考文档信息: https://www.embbnux.com/2015/12/29/letsencrypt_with_nginx_config_for_wordpress/ http://www.tuicool.com/articles/yyMF ...
分类:
其他好文 时间:
2017-01-05 18:14:13
阅读次数:
328
js获取URL中的一些参数的意思 location对象 含有当前URL的信息. 属性 href 整个URL字符串. protocol 含有URL第一部分的字符串,如http: host 包含有URL中主机名:端口号部分的字符串.如//www.cenpok.net/server/ hostname 包 ...
分类:
Web程序 时间:
2017-01-05 15:26:23
阅读次数:
245