Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTPS is Stateful or StateLess?

 
Srinath Vangari
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since HTTP is a stateless protocol, so HTTPS should be stateless.This is my understanding.
But one of the mock test is showing as incorrect answer for selecting "HTTPS is stateless".
 
Stephan van Hulst
Bartender
Posts: 6646
90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are correct. HTTPS just means HTTP over TLS. Since HTTP is stateless, HTTPS is stateless. If the argument is made that HTTPS is not stateless because TLS is not stateless, then you could make the counter-argument that HTTP is also not stateless because it's built on top of TCP, which is not stateless.

So either HTTP and HTTPS are both stateless, or neither of them are.
 
K. Tsang
Bartender
Posts: 3610
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP and HTTPS are both stateless. HTTPS is just HTTP over SSL/TLS

To achieve stateful, you will need to use HTTP session which has nothing to with the "protocol"

Are you reading the question correctly? Which mock test is it? Posting the exact question and answer choice can clear what the question is really asking.
 
Srinath Vangari
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am referring to the question asked in attached screen.
Please let me know, if i am missing anything here.
Mock.png
[Thumbnail for Mock.png]
 
K. Tsang
Bartender
Posts: 3610
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup option B is correct in this particular question.

 
Srinath Vangari
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ..This Helps
 
Stephan van Hulst
Bartender
Posts: 6646
90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whoever wrote the question probably confused themselves because there's a double negative in there: "which is NOT true" and "stateless".
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!