Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [embed-cdt-dev] InputStreamReader from URL fails


> On 22 Jan 2020, at 23:02, Liviu Ionescu <ilg@xxxxxxxxxx> wrote:
> 
> Do you have any idea why the InputStreamReader & co. would behave differently when invoked inside Eclipse compared to a separate program?
> 
> My guess is that some defaults are set differently inside Eclipse, but it is just a hunch, I have no evidence; if so, I probably have to explicitly set the connection to follow redirects.

The above statements are false, in both cases HttpURLConnection does not follow redirects from http to https.

My test was flawed, in the separate program I used https, which works as expected.

The only solution is to manually follow redirections in code.


Regards,

Liviu




Back to the top