published by admin on Wed, 09/11/2013 - 14:55
I published JTouch on sourceforge. It is a web browser working in both CLI (like cURL or wget) and GUI (like Microsoft IIS resource kit's wfetch) modes.
Here are the main functionalities of this project :
- choose which part of the HTTP request-response you want to see
- log network and html timestamps
- use Java DNS resolver or system resolver
- support netscape cookies and cookies v1
- customize low-level SSL (version protocol, ciphersuite, truststore, random)
- save certificates
- authenticate in Basic, Digest, NTLM
- customize the request by changing the headers and the body
- use any proxy
- ...
As I wanted to implement as much RFC as I could, here is the compliance (mostly but not fully) to the RFCs:
- 2616 Hypertext Transfer Protocol -- HTTP/1.1
- 2617 HTTP Authentication: Basic and Digest Access Authentication
- 6265 HTTP State Management Mechanism (obsoletes 2109 & 2965)
- 2396 Uniform Resource Identifiers (URI): Generic Syntax
- 822 STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES
- Netscape : PERSISTENT CLIENT STATE HTTP COOKIES
Examples
- simple GET request
java -jar JTouch.jar -method:GET -uri:/ -hostname:sourceforge.net -version:HTTP/1.1 -port:80 -connect:http -o:System.out -header:Host:sourceforge.net
- simple request with timestamps
java -jar JTouch.jar -method:GET -uri:/ -hostname:sourceforge.net -version:HTTP/1.1 -port:80 -connect:http -o:log.txt -header:Host:sourceforge.net --htmlstamps --netstamps
- request with cookies
java -jar JTouch.jar -method:GET -uri:/ -hostname:sourceforge.net -version:HTTP/1.1 -port:80 -connect:http -o:log.txt -header:Host:sourceforge.net --htmlstamps --netstamps -cookiestore:netscape
- see the cookie store content
java -jar JTouch.jar -viewcookies_netscape:cookies_netscape
For downloading or support, visit the sourceforge project page.
This software is 100% FREE award granted by Softpedia