A、表单元素都是放在标签内的。来看看表单的属性 属性 值 描述 accept MIME_type 规定通过文件上传来提交的文件的类型 accept-charset charset 服务器处理表单数据...
分类:
Web程序 时间:
2014-07-16 21:11:31
阅读次数:
187
/* TCP 的客户端与服务器端 客户端: 1,建立Socket连接,制定服务器端的IP地址和端口号 2,获取流中的输入和输出流对象来操作数据 3.利用write方法将数据写出 4.关闭客户端 服务器端: 1.利用serverSocket指定端口与客户端建立连接 2.获取客户端对象,accept()...
分类:
其他好文 时间:
2014-07-16 19:19:35
阅读次数:
190
ngx_event_core_module模块的ngx_event_process_init方法对事件模块做了一些初始化。其中包括将“请求连接”这样一个读事件对应的处理方法(handler)设置为ngx_event_accept函数,并将此事件添加到epoll模块中。当有新连接事件发生时,ngx_event_accept就会被调用。大致流程是这样:
worker进程在ngx_worker...
分类:
其他好文 时间:
2014-07-15 12:25:28
阅读次数:
299
(config)#vpdnenable(config)#vpdn-grouppppoe(config-vpdn)#accept-dialin(config-vpdn-acc-in)#protocolpppoe(config)#interf0/0(config-if)#noipaddress(config-if)#pppoeenable(config-if)#pppoe-clientdial-pool-number1(config-if)#interdialer1(config-if)#ipaddnegotia..
分类:
其他好文 时间:
2014-07-15 11:47:03
阅读次数:
251
JAVA、openOffice、myeclipse报错原因:没有启动openOffice服务。解决办法:运行→cmd,输入:cdC:\Program Files (x86)\OpenOffice 4\program回车再输入soffice -headless -accept="socket,host...
分类:
编程语言 时间:
2014-07-14 22:46:06
阅读次数:
1027
1.使用get方式时,url类似如下格式:
[html] view
plaincopy
index.jsp?id=100&op=bind
GET报问头如下:
[html] view
plaincopy
GET /sn/index.php?sn=123&n=asa HTTP/1.1
Accept: */*...
分类:
编程语言 时间:
2014-07-14 18:42:29
阅读次数:
336
服务端:#!/usr/bin/pythonimportsockets=socket.socket()host=‘10.67.15.96‘port=889s.bind((host,port))s.listen(5)whileTrue:c,addr=s.accept()print‘++++++‘c.send(‘server‘)b=c.recv(1024)printbc.close()客户端:#!/usr/bin/pythonimportsockets=socket.socket()host=‘10.6..
分类:
其他好文 时间:
2014-07-14 16:24:40
阅读次数:
183
Spring使用AnnotationMethodHandlerAdapter的handleResponseBody方法, AnnotationMethodHandlerAdapter使用request
header中"Accept"的值和messageConverter支持的MediaType进行匹配,然后会用"Accept"的第一个值写入 response的"Content-Type"。一般...
分类:
编程语言 时间:
2014-07-11 00:17:02
阅读次数:
724
Socket通讯的过程Server端Listen(监听)某个端口是否有连接请求,Client端向Server端发出Connect(连接)请求,Server端向Client端发回Accept(接受)消息。一个连接就建立起来了。Server端和Client端都可以通过Send,Write等方法与对方通信...
分类:
其他好文 时间:
2014-07-10 15:21:16
阅读次数:
176
1.新安装一台RHEL6.x或CentOS6.x虚拟机1)关闭防火墙、SELinux[root@localhost~]#serviceiptablesstop//关闭防火墙iptables:清除防火墙规则:[确定]iptables:将链设置为政策ACCEPT:filter[确定]iptables:正在卸载模块:[确定][root@localhost~]#chkconfigiptablesoff[root@..
分类:
系统相关 时间:
2014-07-08 10:10:44
阅读次数:
298