URLConnection: Cookie Behavior Depending on OS

I recently ran into the issue described in this thread:

URLConnection: cookie behaviour depending on OS

…in one of my own projects and can confirm that it’s still happening. I’ve filed a ticket here:

79044 - URLConnection Doesn’t Handle Cookies Under Windows

Just mentioning in case others stumble upon this thread/issue down the road.

3 Likes

The reaction you got in that thread was ridiculous.

Just to clarify, the problem is with the Desktop application and not depending if the server is Mac, Linux or Windows, right?
Or there is a combination of problems depending on the server and windows client?

URLConnection on Mac stores and sends cookies. URLConnection on Windows does not.

1 Like

To clarify a bit more, the example server project was only run on macOS & Windows, although this issue I’ve definitely seen in production where things run on Linux.

But to be clear, this isn’t a URLConnection issue on the server side of things, but instead a client issue, so where the server runs is sort of irrelevant. On macOS URLConnection uses/respects/conforms to standard conventions in regard to cookies, but under Windows it does not.

1 Like