Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

4. Request and Response: Being a Servlet > Actually, one or more of the other H...

Actually, one or more of the other HTTP Methods might make a (brief) appearance on the exam...

image with no caption

If you’re preparing for the exam, you should be able to recognize all of them from a list, and have at least the briefest idea of what they’re used for. But don’t spend much time here!

Note

In the real servlet world, you care about GET and POST.

In the exam world, you care just a tiny bit about the other HTTP Methods as well.

GET

Asks to get the thing (resource / file) at the requested URL.

POST

Asks the server to accept the body info attached to the request, and give it to the thing at the requested URL It’s like a fat GET... a GET with extra info sent with the request.

HEAD

Asks for only the header part of whatever a GET would return. So it’s just like GET, but with no body in the response. Gives you info about the requested URL without actually getting back the real thing.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint