摘要: package org.apache.http.examples.client;import org.apache.http.HttpEntity;import org.apache.http.HttpHost;import org.apache.http.HttpResponse;import org.apache.http.auth.AuthScope;import org.apache.http.auth.UsernamePasswordCredentials;import org.apache.http.client.methods.HttpGet;import org.apache. 阅读全文
posted @ 2013-07-01 22:42 大新博客 阅读(1565) 评论(0) 推荐(0) 编辑
摘要: Tomcat性能优化之(一) 启动GZIP压缩1:设置TOMCAT启用GZIP压缩,通过浏览器HTTP访问对应的资源会根据配置进行压缩。 从上面节点的属性可以看出,要使用GZIP压缩功能,你需要在Connector节点中加上如下属性:compression="on" 启动压缩功能。compre... 阅读全文
posted @ 2013-07-01 20:04 大新博客 阅读(3073) 评论(0) 推荐(0) 编辑
摘要: /* * ==================================================================== * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF... 阅读全文
posted @ 2013-07-01 17:15 大新博客 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: /* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF lice.. 阅读全文
posted @ 2013-07-01 17:12 大新博客 阅读(834) 评论(0) 推荐(0) 编辑
摘要: /* * ==================================================================== * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF... 阅读全文
posted @ 2013-07-01 16:58 大新博客 阅读(825) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args) throws IOException { DefaultHttpClient httpclient = new DefaultHttpClient(); try { HttpPost httpost = new HttpPost("http://localhost:8080/task/index.jsp"); List nvps = new ArrayList (); ... 阅读全文
posted @ 2013-07-01 16:51 大新博客 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: package org.apache.http.examples.client;import java.util.List;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.CookieStore;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpGet;import org.apache.http.client.protocol. 阅读全文
posted @ 2013-07-01 16:43 大新博客 阅读(2610) 评论(0) 推荐(0) 编辑
摘要: package org.apache.http.examples.client;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpGet;import org.apache.http.impl.client.DefaultHttpClient;/** * This example demonstrates how to abort an HT 阅读全文
posted @ 2013-07-01 16:29 大新博客 阅读(503) 评论(0) 推荐(0) 编辑
摘要: package org.apache.http.examples.client;import java.io.IOException;import java.io.InputStream;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpGet;import org.apache.http.impl.client.DefaultHttpCli 阅读全文
posted @ 2013-07-01 16:27 大新博客 阅读(1237) 评论(0) 推荐(0) 编辑
摘要: /* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF lice.. 阅读全文
posted @ 2013-07-01 16:24 大新博客 阅读(447) 评论(0) 推荐(0) 编辑
摘要: Sencha Touch2 工作笔记Ext.dataview.Listactivate(this, newActiveItem, oldActiveItem, eOpts)Fires whenever item within the Container is activated.该事件可以解决在Ext.navigation.View容器中 点击返回按钮再次显示LIST的时候刷新问题 阅读全文
posted @ 2013-07-01 11:31 大新博客 阅读(209) 评论(0) 推荐(0) 编辑