• Post Reply Bookmark Topic Watch Topic
  • New Topic

Headers

 
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: 9362
11
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!