I have a subclass of URLConnection. I want to get the new URLConnection ResponseHeaders property like this from the documentation:
Dim connection As New URLConnection Var headers() As String For Each header As String In connection.ResponseHeaders headers.AddRow(header) Next
The problem is, when I try to access myURLConnection.ResponseHeaders and iterate through the strings as per the documentation code, I get a TypeMismatchException. If I declare a regular URLConnection as per the sample code then it works as it should.
My guess is that I might need to do something differently to access the ResponseHeaders property given that I have subclassed URLConnection?