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 POST and GET method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "POST and GET method" Watch "POST and GET method" New topic
Author

POST and GET method

Lin Cao
Greenhorn

Joined: Oct 22, 2011
Posts: 7
You are creating a web form with this HTML:
<form action="sendOrder.jsp">
<input type="text" name="creditCard">
<input type="text" name="expirationDate">
<input type="submit">
</form>

Which HTTP method is used when sending this request from the browser?
A. GET
B. PUT
C. POST
D. SEND
E. FORM

Answer: A

I think the answer must be wrong, why don't use POST? There are two sensitive data! Am I right?


SCJP: 93%, SCWCD: 97%
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

Lin Cao wrote:are two sensitive data! Am I right?

What does sensitive data have to do with regards to GET versus POST?

Besides, the question isn't asking what you should do, but what will happen.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Lin Cao
Greenhorn

Joined: Oct 22, 2011
Posts: 7
Oh, I get it, the default method is GET.
 
IntelliJ Java IDE
 
subject: POST and GET method
 
Threads others viewed
any othe way to getParameters?
Question Regarding Authentication
Javaranch mock?Question Bank ID : 16
Http method
File uploading and data collection problem
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture