• Post Reply Bookmark Topic Watch Topic
  • New Topic

URLConnection .getHeaderFields()  RSS feed

 
Sushil Suvarna
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The method URLConnection.getHeaderFields() gets the header fields but it is supported by jre 1.4 onwards.
But i am using jre 1.3 so i cannot use this method, instead i am using URLConnection.getHeaderField("HeaderName") which is supported by jre 1.3..But through this method i am getting only the last part of the header and i am not getting the entire header value. Can you suggest me an alternate method which will return the entire value of the header.

Sushil.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!