March 2008
Intermediate to advanced
911 pages
20h 31m
English
How would servlet code from a service method (e.g., doPost() ) retrieve the value of the “User-Agent” header from the request? (Choose all that apply.)
| A. | String userAgent = request.getParameter("User-Agent"); |
| B. |
|
| C. | String userAgent = request.getRequestHeader("Mozilla"); |
| D. | String userAgent = getServletContext().getInitParameter("User-Agent"); |
Which HTTP methods are used to show the client what the server is receiving? (Choose all that apply.)
| A. | GET |
| B. | PUT |
| C. | TRACE |
| D. | RETURN |
| E. | OPTIONS |
Which method of HttpServletResponse is used to ...
Read now
Unlock full access