File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Help in Put and Head methods. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Help in Put and Head methods." Watch "Help in Put and Head methods." New topic
Author

Help in Put and Head methods.

priya rishi
Ranch Hand

Joined: Oct 26, 2008
Posts: 119
Hello,
I am studying the http methods .
but not able to understand put and head methods.
any help,please....


SCJP 5 , SCWCD 5
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Imagine you navigate to a random web page with your browser.

The request type is GET.

What the server returns is a set of Response-Headers that give information to the browser (encoding type, etc.) and the actual response rendered by the browser.

HEAD only retrieves the set of response headers and omits the actual response.

PUT places a file on the server, if it is allowed.

JDBCSupport - An easy to use, light-weight JDBC framework -
priya rishi
Ranch Hand

Joined: Oct 26, 2008
Posts: 119
HEAD only retrieves the set of response headers and omits the actual response.


but whats the purpose of a response with only headers and not HTML(the actual response).

PUT places a file on the server, if it is allowed.


i dont get this, could you explain this.
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
but whats the purpose of a response with only headers and not HTML(the actual response).


Maybe you want to see if a request works and just retrieve the headers. Whatever use there is, I have never needed the HEAD method

i dont get this, could you explain this.


If the server does not impose security restrictions, you can upload a file to the server.
priya rishi
Ranch Hand

Joined: Oct 26, 2008
Posts: 119
Thanks Sebastian Janisch .


could you even explain what is CONNECT method -
Says to connect for the purposes of tunneling.
-from hfsj pg.109

and what is tunneling.
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
As far as I know there is no direct implementation for CONNECT yet. It's for future implementations, whatever there may come...
priya rishi
Ranch Hand

Joined: Oct 26, 2008
Posts: 119
Thanks for your explanations!!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help in Put and Head methods.
 
Similar Threads
IDEMPOTENT or not ?
Http Methods
Idempotence
HTTP methods
SCWD-STUDY GROUP