Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Headers  RSS feed

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
1) What are the purposes of request and response headers?
2) What is the use of addHeader and setHeader methods of response as
there is no get Header method?


Thanks.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I take it you are talking about HTTP? Click that link and scroll down to page 99 where it explains the different headers.
As for your second question, java.net.URLConnection has some methods for setting headers. If you want fine-grained control of HTTP request headers, have a look at Jakarta Commons HttpClient
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!