I was developing a feature to send encoded ID and password values via an HTTPS protocol link, aiming to retrieve the session values and other returned cookies upon successful login.
Despite numerous attempts with C# HttpWebRequest and even Python requests, I failed to retrieve the cookies upon successful login.
Then, I tried using Java HttpsURLConnection with the same headers and content for a POST request to the given link. This time, I received a proper login response and successfully logged in.
Afterwards, I noticed that following this successful login with Java HttpsURLConnection, both the C# HttpWebRequest and Python requests methods, which had previously failed, were now able to retrieve the correct login cookies without any issues. This has left me puzzled.
I am now trying to understand why the methods using C# HttpWebRequest and Python requests initially failed but succeeded after the Java HttpsURLConnection request. It seems something changed on my computer system after using Java HttpsURLConnection.
Could you help explain what settings might have been changed or what impact Java HttpsURLConnection had on my computer that allowed the other methods to start working correctly?
What I have tried:
Sending a POST request to a server using the HTTPS protocol with AJAX functionality to attempt login and receive the correct response.