PDA

View Full Version : what are "GET" and "HEAD" requests


upendrasoft
May 12th, 2006, 05:49 PM
Hi all,
I want to know about "GET" and "HEAD" requests. These requests can be found in the UploadManager.java file. I just want to know how to make GET and HEAD requests. Can anyone help me?

Thanks in advance..

Upendra P.

Sam
May 12th, 2006, 06:24 PM
Take a look at http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html .

You can use HttpClient to make simple GET & HEAD requests.

Zootella
June 26th, 2006, 05:04 PM
HEAD and GET are commands that come before HTTP headers. They're related to the way the Web works, and also used in Gnutella. When you browse to a Web site, your Web browser tells the Web server "GET". This is how it downloads the page. "HEAD" is just like "GET" except it just asks for the headers, not the actual download. You can use "HEAD" to see if a file is there, or if it is a 404, for instance.

Hope that helps.