Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to handle response code 100 in servlet.

 
Jim Hill
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am a beginner in java servlet. I want to know how to process a request which has a "Expect: 100-Continue" header in my servlet. I am using JBoss 3.2.7 as my app server.

Thanks,

JH
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you don't. That sort of thing is up to the server.
 
Jim Hill
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see. So it is up to tomcat config which is embedded in jboss. Any idea how that works?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would need to dig into the interal code for Tomcat.

An application developer shouldn't normally need to concern him/herself with the low level details of the HTTP protocol.

Out of curiosity, why do you ask?
Are you building a custom client?
 
Jim Hill
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

Yes, I am trying to build a custom client as a prototype.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way to stop the chunking is to send a request with HTTP/1.0 instead of HTTP/1.1.

I ran into this issue while working with Apache Axis for C++.
At the time, Axis (client end) wasn't dealing well with the chunking.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic