Ajax 跨域访问post 请求,在服务器却得到的总是options请求 因为此post请求的 content-type不是one of the “application/x-www-form-urlencoded, multipart/form-data, or text/plain”, 所以Pr ...
                            
                            
                                分类:
其他好文   时间:
2016-05-30 14:18:58   
                                阅读次数:
175
                             
                    
                        
                            
                            
                                1、ab测试简单http请求 2、ab 测试 http 接口 (POST) img.json 为符合接口格式的字符串 MIME 类型 application/x-www-form-urlencoded 与 multipart/form-data 和 text/plain 参考 类似于 curl,cu ...
                            
                            
                                分类:
Web程序   时间:
2016-05-10 23:14:38   
                                阅读次数:
207
                             
                    
                        
                            
                            
                                application/x-www-form-urlencoded: 窗体数据被编码为名称/值对。这是标准的编码格式。 multipart/form-data: 窗体数据被编码为一条消息,页上的每个控件对应消息中的一个部分。 text/plain: 窗体数据以纯文本形式进行编码,其中不含任何控件或格... ...
                            
                            
                                分类:
移动开发   时间:
2016-04-13 18:49:45   
                                阅读次数:
151
                             
                    
                        
                            
                            
                                    application/x-www-form-urlencoded multipart/form-data text/plain 为什么上传文件的表单里要加个属性 enctype 后台返回的数据响应的格式类型 上传文件的表单中<form>要加属性enctype="multipart/form-dat ...
                            
                            
                                分类:
移动开发   时间:
2016-04-11 22:13:09   
                                阅读次数:
718
                             
                    
                        
                            
                            
                                1.注意,logstash版本必须要求1.5
2.编辑mail.conf
input{
stdin{
}
}
output{
email{
body=>"%{message}"发送内容
from=>"xxxxx@sina.com"发送邮箱
contenttype=>"text/plain;charset=UTF-8"
options=>[
"smtpIporHost","smtp.sina.com",
"userName","xxxxxx",这..
                            
                            
                                分类:
其他好文   时间:
2016-04-08 20:14:04   
                                阅读次数:
233
                             
                    
                        
                            
                            
                                    首先知道enctype这个属性管理的是表单的MIME编码。共有三个值可选:1、application/x-www-form-urlencoded2、multipart/form-data3、text/plain其中application/x-www-form-urlencoded是默认值,作用是设置... ...
                            
                            
                                分类:
Web程序   时间:
2016-04-05 19:35:24   
                                阅读次数:
300
                             
                    
                        
                            
                            
                                解决 AFNetworking 遇到 unacceptable content-type 问题。
                            
                            
                                分类:
Web程序   时间:
2016-02-22 19:05:52   
                                阅读次数:
673
                             
                    
                        
                            
                            
                                一、短信分享 01Intent intent = new Intent(Intent.ACTION_SEND);02// intent.setType("text/plain"); //纯文本03// 图片分享04intent.setType("image/png");05// 添加图片06File
                            
                            
                                分类:
移动开发   时间:
2016-02-19 12:11:22   
                                阅读次数:
163
                             
                    
                        
                            
                            
                                HTTP access control (CORS) 核心在于使用定制(添加新的header)HTTP header让浏览器和服务器有更多的相互了解,从而决定一个请求或者响应成功还是失败 对于一个简单的请求,没有定制header并且body是text/plain的话,该请求发送的时候会带上一个hea
                            
                            
                                分类:
Web程序   时间:
2016-01-28 17:07:46   
                                阅读次数:
227
                             
                    
                        
                            
                            
                                public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; //1:接收发送过来的文件的数据. ...
                            
                            
                                分类:
Web程序   时间:
2016-01-26 21:43:28   
                                阅读次数:
237