The following code seems to work correctly because I can retrieve the contents of the URL ok, but I don't get any results from the getHeaderField() call. Any ideas?
hai the indexing begins at 1 not 0. getHeaderFieldKey(0) returns null getHeaderField(0) returns the http response HTTP/1.0 status some_info_regarding status. getHeaderFieldKey(1..) returns header key getHeaderField(1..) returns header value your program stops on i=0. start with i=1; it will work bye kumar