今天突然发现CentOS系统没有nbd模块,只能重新装下,下面记录下整个编译过程:[root@localhost ~]# yum install -y kernel-headers kernel-devel[root@localhost ~]# wget ftp://ftp.redhat.com/p...
分类:
其他好文 时间:
2014-11-20 21:47:47
阅读次数:
286
原文:http://callmepeanut.blog.51cto.com/7756998/1390769用Django做后台,客户端向Django请求数据,为了区分不同的请求,想把每个请求类别加在HTTP头部(headers)里面。先做实验,就用Python的httplib库来做模拟客户端,参考网...
分类:
Web程序 时间:
2014-11-17 22:38:09
阅读次数:
338
1.清除缓存目录(/var/cache/yum)下的软件包命令:yum clean packages2.清除缓存目录(/var/cache/yum)下的 headers命令:yum clean headers3.清除缓存目录(/var/cache/yum)下旧的 headers命令:yum clea...
分类:
其他好文 时间:
2014-11-16 17:09:44
阅读次数:
191
备注:个人小结,仅供参考,欢迎纠正1、注入resourcevarstudentService=angular.module(‘studentServiceApp‘,[‘ngAnimate‘,‘ngCookies‘,‘ngResource‘]);2、studentService.config([‘$httpProvider‘,‘app‘,function($httpProvider){$httpProvider.defaults.headers.common[‘Auth..
分类:
Web程序 时间:
2014-11-14 01:48:39
阅读次数:
235
Here‘s my solution to make SOAP-headers based authentication. 1). First of all we define the decorator class for our service class: <?php
class?SOAP_Service_Secure
{
????protected?$class_na...
分类:
Web程序 时间:
2014-11-13 16:55:13
阅读次数:
250
去官方网站下载Jar包:
http://simplecaptcha.sourceforge.net/
Javadocs:
http://simplecaptcha.sourceforge.net/javadocs/index.html
自己书写工具类:
/*
* To change this license header, choose License Headers in ...
分类:
编程语言 时间:
2014-11-13 10:58:14
阅读次数:
406
理解:当客户端访问服务器时,会给服务器发送相关信息。tornado程序中,可在“处理请求类”(继承自tornado.web.RequestHandler)的请求函数中使用self.request.headers获得HTTP header客户端相关信息(包括"User-Agent")User-Agen...
分类:
Web程序 时间:
2014-11-13 10:49:16
阅读次数:
141
今天将apache下的php应用部署到了nginx上,却发现报错:找不到getallheaders()这个函数。很惊奇,这不是php的默认函数么,怎么给我找不到了。但问题就是出现了,只能去找解决方法。原来此函数是apache_request_headers()函数的别名,看到了吧,带有apache的...
分类:
Web程序 时间:
2014-11-13 01:45:34
阅读次数:
249
PHP如何获取http请求头信息,是一个急切解决而不知道如何抉择的问题,本人搜集整理下,可供参考下PHP手册提供了现成的函数: getallheaders (PHP 4, PHP 5) getallheaders — Fetch all HTTP request headers 说明 array g...
分类:
Web程序 时间:
2014-11-13 00:31:16
阅读次数:
190
Files *>
Options -Indexes
Files>
IfModule mod_headers.c>
FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=2592000, public"
FilesMatch>
FilesMatch "\.(x...
分类:
数据库 时间:
2014-11-10 15:35:19
阅读次数:
282