HTTP client : Java Glossary
home H words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
HTTP client
If you want to write an Applet or application or Java Web Start app, that automates what you would do with a browser, you need to speak HTTP client protocols. You need to be able to GET and POST. You want to be able to talk to webservers to fetch files, talk to CGI server to send and receive data or to servlet wombs to send and receive data. Sometimes you want to analyse the responses. Sometimes you just want the browser to render it. Marty Hall’s book is the best place to learn how to do this.

book_cover recommend book⇒Core Web Programming, Second Edition
 paperback
ISBN13:978-0-13-089793-0
ISBN10:0-13-089793-0clickcounter
publisher:Prentice Hall
published:2001-06-03
by:Marty Hall and Gary Cornell
1250 pages. This is a great doorstop of a book. It has a few chapters on client-server programming in Java, and a section of that is on CGI. I have looked at hundreds of Java books and found nothing that deals in depth with client side Java talking to CGI, except Marty’s book. It is really very simple and he does an excellent job of explaining it. Marty has posted all the source code examples from the book for anyone to use. These contain updates and errata fixes you don’t get on the CD-ROM that comes with the book.
Canadian flag amazon.ca. amazon.com. American flag
Canadian flag chapters.indigo.ca . powells.com American flag
French flag amazon.fr. barnesandnoble.com American flag
German flag amazon.de. amazon.co.uk. UK flag

The file IO Amanuensis will generate code for you to handle simple HTTP situations.

You can do your work via general purpose HTTP-client libraries. These are probably overkill in most cases. You would spend more time learning these packages than you would learning how to accomplish the same thing more efficiently with raw sockets or Java’s built-in HTTP using java.net.URLConnection, java.net.HttpURLConnection, javax.net.ssl.HttpsURLConnection and javax.net.ssl.HttpsURLConnection, However, if you have a complex task, check them out.

The main problem with Jakarta HTTPClient is the download is about 3 MB. This is on the plump side for including in an Applet download. You want to get the jar pre-installed at the client in the ext directory or in the Java Web Start cache. The advantage is it behaves the same way on every browser, and it handles most of the client-server interactions at a higher level.


CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.16] The information on this page is for non-military use only.
You are visitor number 16,253. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/httpclient.html J:\mindprod\jgloss\httpclient.html