Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Http Method Doubt

 
Gunjan Kumar
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have one doubt in Question-2 of chap-4(HeadFirst Servlet&JSP)

Q- Which Http methods are used to show the client what the server is receiving?

Ans: TRACE

but in my opinion, answer should also be GET. because user is able to see the parameter passed to server.

So, just correct me if i am wrong

Thanks
 
Anutosh Swamy
Ranch Hand
Posts: 30
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With the help of GET method one can see the parameter name(s)/value(s) appended in the URL as QueryString while submitting the form.

On the other hand the TRACE method simply returns the headers sent with the TRACE request and this is used for debugging purpose, which is not the case with the GET method

EDIT :: TRACE allows the client to see what is being received at the other end of the request chain and use that data for testing or diagnostic information.
---------------------------------------------------------------------------

K.Anutosh

SCJP 1.4

Never do , just sit back and relax
[ October 03, 2007: Message edited by: Anutosh Swamy ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic