CertGear Systems - Certification Practice Tests /Exams For PHR, SPHR, GPHR, SCWCD, SCBCD, SCDJWS, SCJP, PMP Test Prep Products Built To Satisfy The Most Demanding Professional.
Certification Practice Tests For PHR, SPHR, GPHR, SCWCD, SCBCD, SCDJWS, SCJP, PMP
CertGear Products - Certification Practice Tests For PHR, SPHR, GPHR, SCWCD, SCBCD, SCDJWS, SCJP, PMPCertGear Products - Certification Practice Tests For PHR, SPHR, GPHR, SCWCD, SCBCD, SCDJWS, SCJP, PMPAbout CertGearCertGear Affiliates ProgramCertGear Technical SupportCertGear Product Downloads - Certification Practice Tests For PHR, SPHR, GPHR, SCWCD, SCBCD, SCDJWS, SCJP, PMP
Practice Exams Tests
PHR Certification
SPHR Certification
SCJP Practice Tests
SCWCD Practice Tests
SCBCD Practice Tests
SCDJWS Practice Tests
PMP Certification
GPHR Certification

SCWCD Certification Practice Tests SCWCD Study Guide (CX-310-081)

 
 Java Web Security Quiz  

Java Web Security Quiz:

Which of the following HTTP codes is sent when a web browser client tries to access a protected server resource without authenticating first?

A. 401 Unauthorized
B. 403 Forbidden
C. 404 Not Found
D. 405 Method Not Allowed

  • [Ans: A]

  • When a client tries to access a protected resources without authenticating, the server will send a 401 Unauthorized message back to the client. The response message includes a header that tells the client browser that Basic Authentication is needed to access the resource.

    The following is a sample response sent by a server:

    HTTP /1.0 401 Unauthorized
    Server: Tomcat/4.2
    WWW-Authenticate: Basic realm="finance"


    References: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/HTTP3.html



BACK    |    NEXT

 


 

  HRCI Certifications :  PHR, SPHR, GPHR   |    PMI Certifications: PMP
Java Certifications :  SCWCD, SCBCD, SCJDWS, SCJP  | Security Certifications: CISSP, CISA