Description: Http客户端程序已集成在Java语言中,可以通过URLConnection类调用。遗憾的是,由于SUN没有公布Http客户程序的源码,它实现的细节仍是一个谜。本文根据HTTP协议规范,用Java.net.Socket类实现一个HTTP协议客户端程序。 -Http client program has been integrated into the Java language, URLConnection can call category. Unfortunately, because Sun has not announced Http client source code, it achieved the details are still a mystery. According to the HTTP protocol specification. with the realization of a category Java.net.Socket HTTP client program. Platform: |
Size: 6064 |
Author:郑描中 |
Hits:
Description: 用Java实现Web服务器
本文实现了GET请求的Web服务器程序的方法,通过创建ServerSocket类对象,监听端口8080; 等待、接受客户机连接到端口8080; 创建与socket字相关联的输入流和输出流 然后,读取客户机的请求信息,若请求类型是GET,则从请求信息中获取所访问的HTML文件名,如果HTML文件存在,则打开HTML文件,把HTTP头信息和HTML文件内容通过socket传回给Web浏览器,然后关闭文件。否则发送错误信息给Web浏览器。最后,关闭与相应Web浏览器连接的socket字。-Java Web server is to achieve a GET request to the Web server, through the creation of ServerSocket class object, bugging port 8080; Wait, a client is connected to port 8080; Socket character creation and the associated input and output streams flow then read the client's request information, if the request is the type of GET, request information from being accessed visit HTML document, and if the HTML document exists, then open the HTML file, HTTP headers and HTML files through the socket sent back to the Web browser and then close the file. Otherwise, send the wrong message to the Web browser. Finally, the closing and the corresponding Web browser connected to the socket word. Platform: |
Size: 10240 |
Author:雨岳 |
Hits:
Description: Http客户端程序已集成在Java语言中,可以通过URLConnection类调用。遗憾的是,由于SUN没有公布Http客户程序的源码,它实现的细节仍是一个谜。本文根据HTTP协议规范,用Java.net.Socket类实现一个HTTP协议客户端程序。 -Http client program has been integrated into the Java language, URLConnection can call category. Unfortunately, because Sun has not announced Http client source code, it achieved the details are still a mystery. According to the HTTP protocol specification. with the realization of a category Java.net.Socket HTTP client program. Platform: |
Size: 6144 |
Author:郑描中 |
Hits:
Description: 用Java实现Web服务器连接:Web浏览器与Web服务器建立连接。2.请求:Web浏览器通过socket向Web服务器提交请求。3.应答:Web浏览器提交请求后,通过HTTP传送给Web服务器。Web服务器接到请求后,进行事务处理,处理结果又通过HTTP传回给Web浏览器,从而在Web浏览器上显示出所请求的页面。4.关系连接:当应答结束后,Web浏览器与Web服务器必须断开,以保证其它Web浏览器能够与Web服务器建立连接。-Java Web server : Web browsers and Web servers establish a connection. 2. Request : Web browser through the socket to the Web server submits the request. 3. Response : Web browser after the request, transmitted to the Web HTTP server. Web server upon request, conduct of business, and the results passed back to the traditional HTTP Web browser, so the Web browser will display the requested page. 4. Relations link : When respondents end, Web browser and Web server to be disconnected, to ensure that other Web browsers and Web servers to establish a connection. Platform: |
Size: 7168 |
Author:LIYIN |
Hits:
Description: 这是一个用java开发的SocketHttp客户端和服务端程序.-This is a development of the use of java SocketHttp client and the server process. Platform: |
Size: 154624 |
Author:郭进 |
Hits:
Description: 一个基于Java编写的Socket程序,提供简单的FTP功能实现
This networking program set consists of implementation of FTP, TELNET, HTTP SERVER, UDP NEWS SERVER, Multi client parallel chat server, Date server.
Knowledge of socket programming, applet, AWT, thread, and IO streams is essential to understand these programs.
All Program Tested in JDK 1.4, and Run Successfully.
Do not forget to run server program before starting client program.
Developed By:
Divyen K Pate-A Java-based Socket procedures prepared to provide a simple FTP functions This networking program set consists of implementation of FTP, TELNET, HTTP SERVER, UDP NEWS SERVER, Multi client parallel chat server, Date server.Knowledge of socket programming, applet, AWT , thread, and IO streams is essential to understand these programs.All Program Tested in JDK 1.4, and Run Successfully.Do not forget to run server program before starting client program.Developed By: Divyen K Pate Platform: |
Size: 46080 |
Author:Tony Yau |
Hits:
Description:
OReilly.Java.Rmithis book provides strategies for working with serialization,
threading, the RMI registry, sockets and socket factories, activation,
dynamic class downloading, HTTP tunneling, distributed garbage
collection, JNDI, and CORBA. In short, a treasure trove of valuable
RMI knowledge packed into one book. -OReilly.Java.Rmithis book provides strategies for working with serialization, threading, the RMI registry, sockets and socket factories, activation, dynamic class downloading, HTTP tunneling, distributed garbage collection, JNDI, and CORBA. In short, a treasure trove of valuable RMI knowledge packed into one book. Platform: |
Size: 1729536 |
Author:zhuiqiu111 |
Hits:
Description: 这是用JAVA的SOCKET类实现的HTTP CLIENT的代码。通过它可以让原来很头疼的事情现在轻松的解决,例如你不再管是HTTP或者HTTPS的通讯方式,告诉它你想使用HTTPS方式,剩下的事情交给httpclient替你完成。-This is the SOCKET with JAVA class implements the HTTP CLIENT code. It allows the original adoption of a headache now things easy solution, for example, you no longer care about is HTTP or HTTPS communication mode, tell it the way you want to use HTTPS, and the remaining things for you to complete the httpclient. Platform: |
Size: 1577984 |
Author:魏汝垚 |
Hits:
Description: J2ME code to connect socket to remote server at port 80 and request HTTP service for viewing index.html
-J2ME code to connect socket to remote server at port 80 and request HTTP service for viewing index.html
Platform: |
Size: 1024 |
Author:poravis |
Hits:
Description: mina 开发的例子。实现网络通讯的开发。包括socket。http等通讯协议。-mina development example. Network communication development. Including the socket. http and other protocols. Platform: |
Size: 4096 |
Author:鸟人 |
Hits:
Description: 模拟HTTP协议,Java
发送
http
请求
(get
与
post
方法请求
)
,
以下代码经本人亲自调试可用!
可以直接使用之。
注意:通过
BufferedReader
读取远程返回的数据时,必须设置读取编码,否则中文会乱码!(Simulate HTTP protocol, Java
send
http
request
(get
versus
post
Method request
)
,
The following code is available to me personally debugging!
Can be used directly.
Note: Passed
BufferedReader
Read the data returned by the remote, you must set the read encoding, or Chinese will be garbled!) Platform: |
Size: 8192 |
Author:159982 |
Hits: